Procházet zdrojové kódy

fixed p5:links in GetFeature with recurse

Piotr Labudda před 8 roky
rodič
revize
fe92ddd0af
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      SE/se-lib/AclQueryFeatures.php

+ 1 - 0
SE/se-lib/AclQueryFeatures.php

@@ -691,6 +691,7 @@ class AclQueryFeatures {
 				$this__hasFeatureId = [ $this, 'hasFeatureId' ];
 				$this__addFeatureId = [ $this, 'addFeatureId' ];
 				$row[$fieldName] = array_map(function ($item) use ($fieldName, $refNs, $refPk, $this__hasFeatureId, $this__addFeatureId) {
+					if (1 === count($item) && !empty($item['p5:links'])) return $item;
 					$pk = V::get($refPk, '', $item);
 					$featureId = "{$refNs}.{$pk}";
 					if (!$this__hasFeatureId($featureId)) {