| @@ 797-809 (lines=13) @@ | ||
| 794 | } |
|
| 795 | ||
| 796 | // this section is not selected, bail out |
|
| 797 | if (!is_array($validElements)) { |
|
| 798 | if ($newItem) { |
|
| 799 | if ($devkit) { |
|
| 800 | $item->setAttribute('x-forbidden-by-ds', $curMode); |
|
| 801 | } |
|
| 802 | $root->appendChild($item); |
|
| 803 | } |
|
| 804 | continue; |
|
| 805 | } else { |
|
| 806 | if ($devkit) { |
|
| 807 | $item->setAttribute('x-forbidden-by-ds', null); |
|
| 808 | } |
|
| 809 | } |
|
| 810 | ||
| 811 | // selected fields for fetching |
|
| 812 | $sectionElements = array(); |
|
| @@ 846-858 (lines=13) @@ | ||
| 843 | } |
|
| 844 | ||
| 845 | // Filtering is enabled, but nothing is selected |
|
| 846 | if (is_array($sectionElements) && empty($sectionElements)) { |
|
| 847 | if ($newItem) { |
|
| 848 | $root->appendChild($item); |
|
| 849 | if ($devkit) { |
|
| 850 | $item->setAttribute('x-forbidden-by-selection', $curMode); |
|
| 851 | } |
|
| 852 | } |
|
| 853 | continue; |
|
| 854 | } else { |
|
| 855 | if ($devkit) { |
|
| 856 | $item->setAttribute('x-forbidden-by-selection', null); |
|
| 857 | } |
|
| 858 | } |
|
| 859 | ||
| 860 | // fetch current entry again, but with data for the allowed schema |
|
| 861 | $entry = $this->fetchEntry($eId, $sectionElements); |
|