mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 23:05:30 +02:00
2012-06-07 Miguel de Dios <miguel.dedios@artica.es>
* godmode/reporting/visual_console_builder.wizard.php, godmode/reporting/visual_console_builder.php: fixed the modules name with white spaces...again in Pandora console.. MERGED FROM 4.0.2 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6449 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
023a834036
commit
26aa9f5400
@ -1,3 +1,12 @@
|
|||||||
|
2012-06-07 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/reporting/visual_console_builder.wizard.php,
|
||||||
|
godmode/reporting/visual_console_builder.php: fixed the modules
|
||||||
|
name with white spaces...again in Pandora console..
|
||||||
|
|
||||||
|
|
||||||
|
MERGED FROM 4.0.2
|
||||||
|
|
||||||
2012-06-07 Dario Rodriguez <dario.rodriguez@artica.es>
|
2012-06-07 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
* include/functions_modules.php,
|
* include/functions_modules.php,
|
||||||
|
@ -49,7 +49,7 @@ switch ($activeTab) {
|
|||||||
$visualConsoleName = get_parameter('name');
|
$visualConsoleName = get_parameter('name');
|
||||||
|
|
||||||
$values = array('name' => $visualConsoleName, 'id_group' => $idGroup, 'background' => $background);
|
$values = array('name' => $visualConsoleName, 'id_group' => $idGroup, 'background' => $background);
|
||||||
|
|
||||||
// If the background is changed the size is reseted
|
// If the background is changed the size is reseted
|
||||||
$visualConsole = db_get_row_filter('tlayout', array('id' => $idVisualConsole));
|
$visualConsole = db_get_row_filter('tlayout', array('id' => $idVisualConsole));
|
||||||
$background_now = $visualConsole['background'];
|
$background_now = $visualConsole['background'];
|
||||||
@ -80,7 +80,7 @@ switch ($activeTab) {
|
|||||||
$idVisualConsole = db_process_sql_insert('tlayout', $values);
|
$idVisualConsole = db_process_sql_insert('tlayout', $values);
|
||||||
else
|
else
|
||||||
$idVisualConsole = false;
|
$idVisualConsole = false;
|
||||||
|
|
||||||
if ($idVisualConsole !== false) {
|
if ($idVisualConsole !== false) {
|
||||||
db_pandora_audit( "Visual console builder", "Create visual console #$idVisualConsole");
|
db_pandora_audit( "Visual console builder", "Create visual console #$idVisualConsole");
|
||||||
$action = 'edit';
|
$action = 'edit';
|
||||||
@ -208,11 +208,13 @@ switch ($activeTab) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$id_modules = array();
|
$id_modules = array();
|
||||||
|
|
||||||
foreach ($name_modules as $mod) {
|
foreach ($name_modules as $mod) {
|
||||||
foreach ($id_agents as $ag) {
|
foreach ($id_agents as $ag) {
|
||||||
$id_module = agents_get_modules($ag,
|
$id_module = agents_get_modules($ag,
|
||||||
array('id_agente_modulo'),
|
array('id_agente_modulo'),
|
||||||
array('nombre' => $mod));
|
array('nombre' => io_safe_input($mod)));
|
||||||
|
|
||||||
if (empty($id_module))
|
if (empty($id_module))
|
||||||
continue;
|
continue;
|
||||||
else {
|
else {
|
||||||
|
@ -217,6 +217,7 @@ function check_fields() {
|
|||||||
|
|
||||||
function hidden_rows() {
|
function hidden_rows() {
|
||||||
$("tr", "#wizard_table").hide(); //Hide all in the form table
|
$("tr", "#wizard_table").hide(); //Hide all in the form table
|
||||||
|
|
||||||
//Show the id ".*-all_.*"
|
//Show the id ".*-all_.*"
|
||||||
$("tr", "#wizard_table").filter(function () {return /^wizard_table\-all.*/.test(this.id); }).show();
|
$("tr", "#wizard_table").filter(function () {return /^wizard_table\-all.*/.test(this.id); }).show();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user