Merge branch 'ent-12693-bug-al-editar-inventario-remoto' into 'develop'

Ent 12693 bug al editar inventario remoto

See merge request artica/pandorafms!6863
This commit is contained in:
Rafael Ameijeiras 2024-01-23 07:22:16 +00:00
commit c5f94a203e
1 changed files with 6 additions and 2 deletions

View File

@ -131,9 +131,13 @@ if ($add_inventory_module) {
}
}
// Load inventory module data for updating
// Load inventory module data for updating.
if ($load_inventory_module) {
$sql = 'SELECT * FROM tagent_module_inventory WHERE id_module_inventory = '.$load_inventory_module;
$sql = sprintf(
'SELECT * FROM tagent_module_inventory WHERE id_module_inventory = %s AND id_agente = %d',
$load_inventory_module,
$id_agente
);
$row = db_get_row_sql($sql);
if (!empty($row)) {