Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #850 from QoboLtd/issue-with-array-to-string-conve…
Browse files Browse the repository at this point in the history
…rsion-task-20626

Fix issue with array to string conversion (Task #20626)
  • Loading branch information
softius committed Aug 17, 2021
2 parents 6df96a4 + 8593801 commit 46f5ffc
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -40,7 +40,9 @@ public function provide($data = null, array $options = [])

$fieldName = $table->aliasField($field);

$relatedProperties = $this->_getRelatedProperties($options['fieldDefinitions']->getLimit(), (string)$data);
$data = !is_string($data) ? '' : $data;

$relatedProperties = $this->_getRelatedProperties($options['fieldDefinitions']->getLimit(), $data);
if (!empty($relatedProperties['dispFieldVal']) && !empty($relatedProperties['config']['parent']['module'])) {
$relatedParentProperties = $this->_getRelatedParentProperties($relatedProperties);
if (!empty($relatedParentProperties['dispFieldVal'])) {
Expand Down

0 comments on commit 46f5ffc

Please sign in to comment.