mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Fix ajax select fasce orarie
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
include_once __DIR__.'/../../../core.php';
|
||||
|
||||
switch ($resource) {
|
||||
case 'fasce_orarie':
|
||||
case 'eventi':
|
||||
$query = 'SELECT id, nome AS descrizione FROM zz_events |where| ORDER BY nome ASC';
|
||||
|
||||
foreach ($elements as $element) {
|
||||
|
||||
@@ -26,6 +26,9 @@ switch ($resource) {
|
||||
foreach ($elements as $element) {
|
||||
$filter[] = 'id='.prepare($element);
|
||||
}
|
||||
if (empty($filter)) {
|
||||
$where[] = 'in_fasceorarie.deleted_at IS NULL';
|
||||
}
|
||||
|
||||
if (!empty($search)) {
|
||||
$search_fields[] = 'nome LIKE '.prepare('%'.$search.'%');
|
||||
|
||||
Reference in New Issue
Block a user