File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1155,12 +1155,13 @@ public function getFullForm($richText = false) {
11551155 $ question = new PluginFormcreatorQuestion ();
11561156
11571157 $ found_questions = $ question ->getQuestionsFromForm ($ this ->fields ['plugin_formcreator_forms_id ' ]);
1158- foreach ($ found_questions as $ id => $ question ) {
1159- $ fields [$ id ] = PluginFormcreatorFields::getFieldInstance (
1158+ foreach ($ found_questions as $ questionId => $ question ) {
1159+ $ answer = $ answers_values ['formcreator_field_ ' . $ questionId ];
1160+ $ fields [$ questionId ] = PluginFormcreatorFields::getFieldInstance (
11601161 $ question ->fields ['fieldtype ' ],
11611162 $ question
11621163 );
1163- $ fields [$ id ]->parseAnswerValues ( $ answers_values );
1164+ $ fields [$ questionId ]->deserializeValue ( $ answer );
11641165 }
11651166
11661167 // TODO: code very close to PluginFormcreatorTargetBase::parseTags() (factorizable ?)
You can’t perform that action at this time.
0 commit comments