mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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'};
|
||||
|
||||
@ -698,6 +698,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…
x
Reference in New Issue
Block a user