Sfoglia il codice sorgente

allow change predefined models options

Roman Dmitriev 1 anno fa
parent
commit
d02a00b
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      html/admin/customers/devmodels.php

+ 4 - 1
html/admin/customers/devmodels.php

@@ -36,7 +36,10 @@ if (isset($_POST['save'])) {
 	            $new['model_name'] = $_POST['f_name'][$j];
 	            $new['poe_in'] = $_POST['f_poe_in'][$j];
 	            $new['poe_out'] = $_POST['f_poe_out'][$j];
-	        }
+	        } else {
+	            $new['poe_in'] = $_POST['f_poe_in'][$j];
+	            $new['poe_out'] = $_POST['f_poe_out'][$j];      
+            }
             $new['nagios_template'] = $_POST['f_nagios'][$j];
             update_record($db_link, "device_models", "id='{$save_id}'", $new);
             }