mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Fix on table selection
This commit is contained in:
parent
9287c34008
commit
f9e1480c56
@ -4893,7 +4893,7 @@ sub on_demand_macro($$$$$$;$) {
|
|||||||
return (defined($field_value)) ? $field_value : '';
|
return (defined($field_value)) ? $field_value : '';
|
||||||
} elsif ($macro eq '_dataunit_'){
|
} elsif ($macro eq '_dataunit_'){
|
||||||
return '' unless defined ($module);
|
return '' unless defined ($module);
|
||||||
my $field_value = get_db_value($dbh, 'SELECT unit FROM tagente_datos where id_agente_modulo = ? order by utimestamp desc limit 1 offset 1', $module->{'id_agente_modulo'});
|
my $field_value = get_db_value($dbh, 'SELECT unit FROM tagente_modulo where id_agente_modulo = ? order by utimestamp desc limit 1 offset 1', $module->{'id_agente_modulo'});
|
||||||
} elsif ($macro eq '_prevdata_') {
|
} elsif ($macro eq '_prevdata_') {
|
||||||
return '' unless defined ($module);
|
return '' unless defined ($module);
|
||||||
if ($module->{'id_tipo_modulo'} eq 3){
|
if ($module->{'id_tipo_modulo'} eq 3){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user