Skip to content

Commit 3201115

Browse files
Fix for new tracks in frontend (tags not yet available)
1 parent 87f2467 commit 3201115

File tree

1 file changed

+1
-1
lines changed
  • components/com_jtg/views/track/tmpl

1 file changed

+1
-1
lines changed

components/com_jtg/views/track/tmpl/form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
$lists['default_map'] = JHtml::_('select.genericlist', $maplist, 'default_map', 'class="form-select size="1"', 'id', 'name', $this->track->default_map);
119119
$trackForm = $this->getModel()->getForm(); // TODO: read data from DB
120120
$tagField = $trackForm->getField('tags');
121-
$tagField->setValue($this->tagids);
121+
if (isset($this->tagids)) $tagField->setValue($this->tagids);
122122
$lists['tags'] = $tagField->renderField(array('hiddenLabel'=> true));
123123

124124
?>

0 commit comments

Comments
 (0)