| @@ 821-833 (lines=13) @@ | ||
| 818 | } |
|
| 819 | ||
| 820 | // this section is not selected, bail out |
|
| 821 | if (!is_array($validElements)) { |
|
| 822 | if ($newItem) { |
|
| 823 | if ($devkit) { |
|
| 824 | $item->setAttribute('x-forbidden-by-ds', $curMode); |
|
| 825 | } |
|
| 826 | $root->appendChild($item); |
|
| 827 | } |
|
| 828 | continue; |
|
| 829 | } else { |
|
| 830 | if ($devkit) { |
|
| 831 | $item->setAttribute('x-forbidden-by-ds', null); |
|
| 832 | } |
|
| 833 | } |
|
| 834 | ||
| 835 | // selected fields for fetching |
|
| 836 | $sectionElements = array(); |
|
| @@ 870-882 (lines=13) @@ | ||
| 867 | } |
|
| 868 | ||
| 869 | // Filtering is enabled, but nothing is selected |
|
| 870 | if (is_array($sectionElements) && empty($sectionElements)) { |
|
| 871 | if ($newItem) { |
|
| 872 | $root->appendChild($item); |
|
| 873 | if ($devkit) { |
|
| 874 | $item->setAttribute('x-forbidden-by-selection', $curMode); |
|
| 875 | } |
|
| 876 | } |
|
| 877 | continue; |
|
| 878 | } else { |
|
| 879 | if ($devkit) { |
|
| 880 | $item->setAttribute('x-forbidden-by-selection', null); |
|
| 881 | } |
|
| 882 | } |
|
| 883 | ||
| 884 | // fetch current entry again, but with data for the allowed schema |
|
| 885 | $entry = $this->fetchEntry($eId, $sectionElements); |
|