content/content.delete.php 1 location
|
@@ 83-86 (lines=4) @@
|
80 |
|
if (is_array($entry)) { |
81 |
|
$entry = $entry[0]; |
82 |
|
} |
83 |
|
if ($entry->get('section_id') != $parentField->get('parent_section')) { |
84 |
|
$this->_Result['error'] = __('Field and entry do not belong together'); |
85 |
|
return; |
86 |
|
} |
87 |
|
|
88 |
|
// Validate to delete entry exists |
89 |
|
$toDeleteEntry = EntryManager::fetch($toDeleteEntryId); |
content/content.save.php 1 location
|
@@ 113-116 (lines=4) @@
|
110 |
|
if (is_array($entry)) { |
111 |
|
$entry = $entry[0]; |
112 |
|
} |
113 |
|
if ($entry->get('section_id') != $parentField->get('parent_section')) { |
114 |
|
$this->_Result['error'] = __('Field and entry do not belong together'); |
115 |
|
return; |
116 |
|
} |
117 |
|
$entryData = $entry->getData(); |
118 |
|
|
119 |
|
// Perform operation, if needed |