mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Revisione modulo Banche
Revisione del modulo Banche per aggiungere il supporto alle Anagrafiche, in modo da unificare le informazioni relative.
This commit is contained in:
@@ -39,7 +39,10 @@ if (!empty($id_record)) {
|
||||
]);
|
||||
Util\Query::setSegments(true);
|
||||
}
|
||||
$query = str_replace(['AND `deleted_at` IS NULL', '`deleted_at` IS NULL AND', '`deleted_at` IS NULL', 'AND deleted_at IS NULL', 'deleted_at IS NULL AND', 'deleted_at IS NULL'], '', $query);
|
||||
// Replace automatico del campo deleted_at se non specifico a una tabella
|
||||
if (!str_contains($query, '.`deleted_at`') && !str_contains($query, '.deleted_at')) {
|
||||
$query = str_replace(['AND `deleted_at` IS NULL', '`deleted_at` IS NULL AND', '`deleted_at` IS NULL', 'AND deleted_at IS NULL', 'deleted_at IS NULL AND', 'deleted_at IS NULL'], '', $query);
|
||||
}
|
||||
|
||||
$has_access = !empty($query) ? $dbo->fetchNum($query) !== 0 : true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user