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

Merge pull request #4907 from aydreeihn/issue/empty-list-item-extra

Empty extra in list_items
parents 98860344 1309a6c7
No related branches found
No related tags found
No related merge requests found
...@@ -807,7 +807,10 @@ class DynamicListItem extends VerySimpleModel implements CustomListItem { ...@@ -807,7 +807,10 @@ class DynamicListItem extends VerySimpleModel implements CustomListItem {
'sort' => 'sort', 'sort' => 'sort',
'value' => 'value', 'value' => 'value',
'abbrev' => 'extra') as $k => $v) { 'abbrev' => 'extra') as $k => $v) {
if (isset($vars[$k])) if ($k == 'abbrev' && empty($vars[$k])) {
$vars[$k] = NULL;
$this->set($v, $vars[$k]);
} elseif (isset($vars[$k]))
$this->set($v, $vars[$k]); $this->set($v, $vars[$k]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment