CIM37 -Allow geolocation update in equipment_manage
This commit is contained in:
@@ -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.'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user