mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-10 06:35:54 +01:00
Fix modifica fasce orarie
This commit is contained in:
parent
6f8c258382
commit
9fd43f2f60
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user