2013-10-16 Miguel de Dios <miguel.dedios@artica.es>

* godmode/agentes/configurar_agente.php,
	include/functions_network_components.php,
	include/functions_alerts.php: fixed the name of items to duplicate,
	now they have a html entities for whitespaces.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8926 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-10-16 12:00:58 +00:00
parent ab7919e623
commit 83c0cd91c5
4 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2013-10-16 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/configurar_agente.php,
include/functions_network_components.php,
include/functions_alerts.php: fixed the name of items to duplicate,
now they have a html entities for whitespaces.
2013-10-16 Sergio Martin <sergio.martin@artica.es>
* include/javascript/jquery.pandora.js

View File

@ -1257,7 +1257,7 @@ if (!empty($duplicate_module)) { // DUPLICATE agent module !
$id_duplicate_module = $duplicate_module;
$original_name = modules_get_agentmodule_name($id_duplicate_module);
$copy_name = sprintf(__('copy of %s'), $original_name);
$copy_name = io_safe_input(sprintf(__('copy of %s'), $original_name));
$cont = 0;
$exists = true;
@ -1266,7 +1266,8 @@ if (!empty($duplicate_module)) { // DUPLICATE agent module !
'nombre', $copy_name);
if ($exists) {
$cont++;
$copy_name = sprintf(__('copy of %s (%d)'), $original_name, $cont);
$copy_name = io_safe_input(
sprintf(__('copy of %s (%d)'), $original_name, $cont));
}
}

View File

@ -901,7 +901,7 @@ function alerts_duplicate_alert_template ($id_alert_template) {
if ($template === false)
return false;
$name = __('Copy of').' '.$template['name'];
$name = io_safe_input(__('Copy of') . ' ') . $template['name'];
$type = $template['type'];
$size = count ($template) / 2;

View File

@ -471,7 +471,7 @@ function network_components_duplicate_network_component ($id_local_component) {
if ($network === false)
return false;
$name = __('Copy of').' '.$network['name'];
$name = io_safe_input(__('Copy of') . ' ') . $network['name'];
unset($network['id_nc']);
unset($network['name']);
unset($network['category_name']);