1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-10 14:44:04 +01:00

Fix modifica fasce orarie

This commit is contained in:
valentina 2024-06-27 10:01:21 +02:00
parent 6f8c258382
commit 9fd43f2f60

View File

@ -30,7 +30,7 @@ switch (post('op')) {
$is_predefined = post('is_predefined');
if (isset($descrizione)) {
$fascia_oraria_new = FasciaOraria::where('id', '=', (new FasciaOraria())->getByField('title', $descrizione))->orWhere('name', $descrizione)->where('id', '!=', $id_record)->first();
$fascia_oraria_new = FasciaOraria::where('id', '=', (new FasciaOraria())->getByField('title', $descrizione))->where('id', '!=', $id_record)->first();
if (empty($fascia_oraria_new)) {
if (!empty($is_predefined)) {
$dbo->query('UPDATE `in_fasceorarie` SET `predefined` = 0');