2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>
* godmode/modules/manage_network_templates_form.php: Fixed a bug with allows to create a module template without a name. Fixes: 3371381 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4653 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e162178d82
commit
f7347f4ba4
|
@ -1,8 +1,18 @@
|
|||
2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||
|
||||
* godmode/modules/manage_network_templates_form.php: Fixed
|
||||
a bug with allows to create a module template without a
|
||||
name.
|
||||
|
||||
Fixes: 3371381
|
||||
|
||||
2011-07-29 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||
|
||||
* include/functions_agents.php: Fixed a bug related to
|
||||
wrong value for a foreach function.
|
||||
|
||||
Fixes: 3371341
|
||||
|
||||
2011-07-28 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_networkmap.php: Added new mode to
|
||||
|
|
|
@ -74,7 +74,7 @@ if (isset ($_GET["create"]) || isset ($_GET["update"])) {
|
|||
//Submitted form
|
||||
$name = get_parameter_post ("name");
|
||||
$description = get_parameter_post ("description");
|
||||
|
||||
if ($name != "") {
|
||||
if ($id_np > 0) {
|
||||
//Profile exists
|
||||
$values = array(
|
||||
|
@ -96,6 +96,9 @@ if (isset ($_GET["create"]) || isset ($_GET["update"])) {
|
|||
__('Error adding network profile'));
|
||||
$id_np = (int) $result; //Will return either 0 (in case of error) or an int
|
||||
}
|
||||
} else {
|
||||
ui_print_result_message(false, "", _("Cannot create a template without name"));
|
||||
}
|
||||
|
||||
}
|
||||
elseif ($id_np > 0) {
|
||||
|
|
Loading…
Reference in New Issue