Skip to content

Commit

Permalink
fix(actorfield): answer not displayed when shwoing saved data
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 9, 2021
1 parent 2a9449c commit 003ddda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/field/actorfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ public function parseAnswerValues($input, $nonDestructive = false): bool {
return true;
}

if (is_string($input[$key])) {
// value from a saved answer
$input[$key] = json_decode($input[$key], JSON_OBJECT_AS_ARRAY);
}
if (!is_array($input[$key])) {
return false;
}
Expand Down

0 comments on commit 003ddda

Please sign in to comment.