please copy again the release 0.5e or 0.5f. Perhaps you inserted a command twice ... with all manually changes we had done before. (an indication is we can see the same host id)kos wrote:Adding a host to a config results in 2 entries (see attachment)
Removing a host of a config results in eliminating both hosts entries
I have installed a new test server without this problem ....
2/
Yes you find a bug !!! .... I upload the new version 0.5f .... otherwisekos wrote: Assume, you added a single device to several configs. If you remove such host in ONE dedicated config, the host gets removed in ALL configs
please correct in configmanager_edit.php line 154 and 154
Code: Select all
$t = db_fetch_assoc("select gorder from $cfgmngtable_data where configmanagerid=$configid and hostid = $id");
$temp = db_fetch_assoc("delete from $cfgmngtable_data where configmanagerid=$configid and hostid ='$id'");
Code: Select all
function template_delete($configid,$configname) {
global $cfgmngtable_basis,$cfgmngtable,$cfgmngtable_data;
foreach($_POST as $t=>$v) {
if (substr($t, 0,4) == "chk_") {
$id = substr($t, 4);
//if ($id<0) $id=-$id;
$t = db_fetch_assoc("select gorder from $cfgmngtable_data where configmanagerid=$configid and hostid = $id");
$temp = db_fetch_assoc("delete from $cfgmngtable_data where configmanagerid=$configid and hostid ='$id'");
if (sizeof($t) > 0) {
order_remove ($t[0]['gorder'],$configid,$configname);
}
}
}
Header("Location: configmanager_edit.php?action=edit&configid=$configid&name=$configname");
exit;
}