Skip to content

Commit

Permalink
Merge pull request techjoomla#188 from ankush-maherwal/release-1.4.3
Browse files Browse the repository at this point in the history
Bug techjoomla#205 fix: For list type of field, value is shown on list and deta…
  • Loading branch information
ankush-maherwal authored Oct 18, 2019
2 parents c2d631f + 8b0870a commit c8ad742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/helpers/tjfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ public function saveFieldsValue($data)
}
elseif (is_array($fieldValue))
{
if (strpos(',', $fieldValue[0]))
if (strpos($fieldValue[0], ','))
{
$fieldValue = explode(",", $fieldValue[0]);
$fieldValue = explode(',', $fieldValue[0]);
}

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

0 comments on commit c8ad742

Please sign in to comment.