Minor fix (performance)
Moved transactional subsystem enabled update to "new module" section
This commit is contained in:
parent
e7bb60b61d
commit
83ca7e898f
|
@ -641,9 +641,9 @@ sub process_module_data ($$$$$$$$$$) {
|
|||
$module_conf->{'nombre'} = safe_input($module_name);
|
||||
|
||||
# Check if module is 'Transactional subsystem status'
|
||||
my $enable_transactional_subsystem = 0;
|
||||
if ($module_conf->{'name'} eq "Transactional subsystem status") {
|
||||
# Defines current agent as transactional agent
|
||||
pandora_mark_transactional_agent($dbh, $agent->{'id_agente'});
|
||||
$enable_transactional_subsystem = 1;
|
||||
}
|
||||
delete $module_conf->{'name'};
|
||||
|
||||
|
@ -697,6 +697,11 @@ sub process_module_data ($$$$$$$$$$) {
|
|||
}
|
||||
delete $module_conf->{'module_group'};
|
||||
}
|
||||
|
||||
if ($enable_transactional_subsystem == 1) {
|
||||
# Defines current agent as transactional agent
|
||||
pandora_mark_transactional_agent($dbh, $agent->{'id_agente'});
|
||||
}
|
||||
|
||||
$module_conf->{'id_modulo'} = 1;
|
||||
$module_conf->{'id_agente'} = $agent->{'id_agente'};
|
||||
|
|
Loading…
Reference in New Issue