Просмотр исходного кода

fixed p5:links in GetFeature with recurse

Piotr Labudda 8 лет назад
Родитель
Сommit
fe92ddd0af
1 измененных файлов с 1 добавлено и 0 удалено
  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)) {