Skip to content
Snippets Groups Projects
Unverified Commit 14bfc4cb authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4901 from JediKev/issue/retained-deleted-listitem-errors

issue: Retained Deleted ListItem Errors
parents f4d5adde a3297a25
No related branches found
No related tags found
No related merge requests found
......@@ -1775,7 +1775,8 @@ class SelectionField extends FormField {
// Add in the properties for all selected list items in sub
// labeled by their field id
foreach ($v as $id=>$L) {
if (!($li = DynamicListItem::lookup($id)))
if (!($li = DynamicListItem::lookup($id))
|| !$li->getListId())
continue;
foreach ($li->getFilterData() as $prop=>$value) {
if (!isset($data[$prop]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment