Skip to content
Permalink
Browse files

Clone Object - fix "invalid argument" error

  • Loading branch information...
vpithart authored and LarsMichelsen committed Jul 4, 2019
1 parent 17f8534 commit 023156cc191436434d5e4a7e13d4ab29f30e55bf
Showing with 4 additions and 1 deletion.
  1. +1 −0 ChangeLog
  2. +3 −1 share/server/core/mapcfg/default.php
@@ -4,6 +4,7 @@ Worldmap:
* Feature: dim openstreetmap colors
* Optional 2nd map layer (satellite imagery)
* FIX: worldmap textbox visibility per zoom level
* FIX: The "clone object" functionality

1.9.12
Core:
@@ -110,11 +110,13 @@ function listZoomFactors() {
function getObjectNames($type, $MAPCFG, $objId, $attrs) {
global $_BACKEND;
$backendIds = false;
if (isset($attrs['backend_id']) && $attrs['backend_id'] != '') {
$backendIds = $attrs['backend_id'];
} elseif ($objId !== null) {
$backendIds = $MAPCFG->getValue($objId, 'backend_id');
} else {
}
if (!$backendIds) {
$backendIds = $MAPCFG->getValue(0, 'backend_id');
}

0 comments on commit 023156c

Please sign in to comment.
You can’t perform that action at this time.