Skip to content

Commit

Permalink
Bug techjoomla#242 fix: If any field in subform contain special chara…
Browse files Browse the repository at this point in the history
…cter in its name then the data for that field is not saved in DB
  • Loading branch information
ankush-maherwal committed Nov 27, 2019
1 parent 43ba520 commit 39fb1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/helpers/tjfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function saveFieldsValue($data)
$tjucmItemsModel->setState('parent_id', TJUCM_PARENT_CONTENT_ID);
$tjucmItemsModel->setState('ucm.client', $ucmSubformClient);
$ucmSubformRecords = $tjucmItemsModel->getItems();
$ucmSubformRecordIds = array_column($ucmSubformRecords, 'id');
$ucmSubformRecordIds = (!empty($ucmSubformRecords)) ? array_column($ucmSubformRecords, 'id') : array();

$this->saveSingleValuedFieldData($ucmSubformClient, TJUCM_PARENT_CLIENT, TJUCM_PARENT_CONTENT_ID, $field->id, $fieldStoredValues);

Expand Down

0 comments on commit 39fb1c9

Please sign in to comment.