CIM37 -Allow geolocation update in equipment_manage

This commit is contained in:
“VeLiTi”
2024-04-04 10:41:41 +02:00
parent fce587ff91
commit a657daa1de
2 changed files with 14 additions and 3 deletions

View File

@@ -143,9 +143,9 @@ switch ($action) {
case 'geolocation':
if ($whereclause == ''){
$whereclause = 'WHERE geolocation is not null';
$whereclause = 'WHERE geolocation is not null OR geolocation != "["",""]"';
} else {
$whereclause .= ' AND geolocation is not null';
$whereclause .= ' AND geolocation is not null OR geolocation != "["",""]';
}
$sql = 'SELECT distinct(geolocation) FROM equipment e '.$whereclause.'';