mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-22 13:26:38 +01:00
Bugfix su segmenti
This commit is contained in:
parent
465b8d61fa
commit
b8ee729ded
@ -15,13 +15,13 @@ switch (post('op')) {
|
|||||||
$dbo->query('UPDATE zz_segments SET predefined = 0 WHERE id_module = '.prepare($id_module));
|
$dbo->query('UPDATE zz_segments SET predefined = 0 WHERE id_module = '.prepare($id_module));
|
||||||
}
|
}
|
||||||
|
|
||||||
$dbo->update('an_anagrafiche', [
|
$dbo->update('zz_segments', [
|
||||||
'id_module' => post('module'),
|
'id_module' => post('module'),
|
||||||
'name' => post('name'),
|
'name' => post('name'),
|
||||||
'clause' => post('clause'),
|
'clause' => post('clause'),
|
||||||
'pattern' => $pattern,
|
'pattern' => $pattern,
|
||||||
'note' => post('note'),
|
'note' => post('note'),
|
||||||
'position' => post('pisition'),
|
'position' => post('position'),
|
||||||
'predefined' => $predefined,
|
'predefined' => $predefined,
|
||||||
], ['id' => $id_record]);
|
], ['id' => $id_record]);
|
||||||
|
|
||||||
@ -32,8 +32,10 @@ switch (post('op')) {
|
|||||||
case 'add':
|
case 'add':
|
||||||
$pattern = str_contains(post('pattern'), '#') ? post('pattern') : '####';
|
$pattern = str_contains(post('pattern'), '#') ? post('pattern') : '####';
|
||||||
$predefined = post('predefined');
|
$predefined = post('predefined');
|
||||||
|
|
||||||
|
$module = post('module');
|
||||||
|
|
||||||
if (empty(Modules::getSegments($id_module))) {
|
if (empty(Modules::getSegments($module))) {
|
||||||
$predefined = 1;
|
$predefined = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user