|
|
@@ -156,7 +156,8 @@ class Api_Wfs_GetFeature {
|
|
|
$xmlWriter->writeAttribute($name, $value);
|
|
|
}
|
|
|
|
|
|
- $fldList = $acl->getRealFieldListByIdZasob();
|
|
|
+ // $fldList = $acl->getRealFieldListByIdZasob();
|
|
|
+ $fldList = $acl->getFieldListByIdZasob();
|
|
|
$geomFld = null;
|
|
|
foreach ($fldList as $fldName) {
|
|
|
if ($acl->isGeomField($fldName)) {
|
|
|
@@ -166,12 +167,11 @@ class Api_Wfs_GetFeature {
|
|
|
|
|
|
DBG::log($fldList, 'array', ">>> loop start fields(".count($fldList).")");
|
|
|
// DBG::log($showFields, 'array', "DBG: \$showLocalFields \$showFields 0");
|
|
|
- $showLocalFields = array_filter(
|
|
|
- ($showFields) ? $showFields : $fldList, // if empty filter cols show all local fields
|
|
|
- function ($showFieldName) {
|
|
|
+ $showLocalFields = ($showFields) // if empty filter cols show all local fields
|
|
|
+ ? array_filter($showFields, function ($showFieldName) {
|
|
|
return (false === strpos($showFieldName, "/"));
|
|
|
- }
|
|
|
- );
|
|
|
+ })
|
|
|
+ : $fldList;
|
|
|
DBG::log($showLocalFields, 'array', "DBG: \$showLocalFields");
|
|
|
$fldList = array_filter($fldList, function ($fieldName) use ($showLocalFields) {
|
|
|
return (in_array($fieldName, $showLocalFields));
|