Skip to content

Commit

Permalink
Bug techjoomla#205 fix: For list type of field, value is shown on lis…
Browse files Browse the repository at this point in the history
…t and details view instead of label
  • Loading branch information
ankush-maherwal committed Oct 18, 2019
1 parent a235763 commit 5f81533
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/helpers/tjfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ public function saveFieldsValue($data)
}
elseif (is_array($fieldValue))
{
$fieldValue = explode(",", $fieldValue[0]);
if (strpos(',', $fieldValue[0]))
{
$fieldValue = explode(",", $fieldValue[0]);
}

$this->saveMultiValuedFieldData($fieldValue, $field->client, $data['content_id'], $field->id, $fieldStoredValues);
}
Expand Down

0 comments on commit 5f81533

Please sign in to comment.