mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch '1597-pantalla-en-blanco-en-mapas-de-red-dev' into 'develop'
Fixed null values in js See merge request artica/pandorafms!1073
This commit is contained in:
commit
e91bcf8ad5
@ -699,9 +699,24 @@ if (enterprise_installed()) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$networkmap_filter = json_decode($networkmap['filter'], true);
|
$networkmap_filter = json_decode($networkmap['filter'], true);
|
||||||
$map_dash_details['x_offs'] = $networkmap_filter['x_offs'];
|
if ($networkmap_filter['x_offs'] != null) {
|
||||||
$map_dash_details['y_offs'] = $networkmap_filter['y_offs'];
|
$map_dash_details['x_offs'] = $networkmap_filter['x_offs'];
|
||||||
$map_dash_details['z_dash'] = $networkmap_filter['z_dash'];
|
}
|
||||||
|
else {
|
||||||
|
$map_dash_details['x_offs'] = 0;
|
||||||
|
}
|
||||||
|
if ($networkmap_filter['y_offs'] != null) {
|
||||||
|
$map_dash_details['y_offs'] = $networkmap_filter['y_offs'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$map_dash_details['y_offs'] = 0;
|
||||||
|
}
|
||||||
|
if ($networkmap_filter['z_dash'] != null) {
|
||||||
|
$map_dash_details['z_dash'] = $networkmap_filter['z_dash'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$map_dash_details['z_dash'] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user