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