mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-03 01:08:08 +01:00
Fix minori
This commit is contained in:
parent
2f7ddad013
commit
8669c5ef7c
@ -84,6 +84,10 @@ switch (filter('op')) {
|
||||
|
||||
$impianti = $dbo->select('my_impianti', '*', [], ['id_categoria' => $id_record]);
|
||||
foreach ($impianti as $impianto) {
|
||||
Check::deleteLinked([
|
||||
'id_module' => $modulo_impianti['id'],
|
||||
'id_record' => $impianto['id'],
|
||||
]);
|
||||
foreach ($checks_categoria as $check_categoria) {
|
||||
$check = Check::build($user, $structure, $impianto['id'], $check_categoria['content'], null, $check_categoria['is_titolo'], $check_categoria['order']);
|
||||
$check->id_module = $modulo_impianti['id'];
|
||||
|
@ -167,8 +167,12 @@ switch ($op) {
|
||||
break;
|
||||
|
||||
case 'sync_checklist':
|
||||
$checks_categoria = $dbo->fetchArray('SELECT * FROM zz_checks WHERE id_module = '.prepare($modulo_categorie_impianti['id']).' AND id_record = '.prepare(post('id_categoria')));
|
||||
Check::deleteLinked([
|
||||
'id_module' => $id_module,
|
||||
'id_record' => $id_record,
|
||||
]);
|
||||
|
||||
$checks_categoria = $dbo->fetchArray('SELECT * FROM zz_checks WHERE id_module = '.prepare($modulo_categorie_impianti['id']).' AND id_record = '.prepare(post('id_categoria')));
|
||||
foreach ($checks_categoria as $check_categoria) {
|
||||
$check = Check::build($user, $structure, $id_record, $check_categoria['content'], null, $check_categoria['is_titolo'], $check_categoria['order']);
|
||||
$check->id_plugin = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user