From d0fa1534d9bc880df6a42a85ab53a459f0495052 Mon Sep 17 00:00:00 2001 From: valentina Date: Fri, 9 Aug 2024 15:20:05 +0200 Subject: [PATCH] Fix eliminazione sede plugin Anagrafiche --- include/top.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/top.php b/include/top.php index 27e4ee560..30d98f099 100755 --- a/include/top.php +++ b/include/top.php @@ -534,7 +534,7 @@ if (Auth::check()) { } if (!empty($opt)) { - $q = str_replace('|id_parent|', $id_record, $opt['main_query'][0]['query']); + $q = str_replace('|id_parent|', ($id_record?:$id_parent), $opt['main_query'][0]['query']); $count = $dbo->fetchNum($q); }