Skip to content

Commit 305cb58

Browse files
authored
Fix default value for taglist formwidget in relation mode (#611)
1 parent ed933b4 commit 305cb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/backend/formwidgets/TagList.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function getLoadValue()
154154
$value = parent::getLoadValue();
155155

156156
if ($this->mode === static::MODE_RELATION) {
157-
return $this->getRelationObject()->lists($this->nameFrom);
157+
return $value ?: $this->getRelationObject()->lists($this->nameFrom);
158158
}
159159

160160
return $this->mode === static::MODE_STRING

0 commit comments

Comments
 (0)