Skip to content

Commit ca85762

Browse files
committed
Revert "feat(formanswer): log any failure when saving a answer"
This reverts commit 5d84054.
1 parent f544784 commit ca85762

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

inc/formanswer.class.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,10 +1214,6 @@ public function post_addItem() {
12141214
'plugin_formcreator_questions_id' => $questionId,
12151215
'answer' => Toolbox::addslashes_deep($answer_value),
12161216
], [], 0);
1217-
if ($answer->isNewItem()) {
1218-
$formanswerId = $this->getID();
1219-
trigger_error("Formcreator: failed to save answer for question $questionId in formanswer ID $formanswerId. Value was: $answer_value", E_USER_WARNING);
1220-
}
12211217
foreach ($field->getDocumentsForTarget() as $documentId) {
12221218
$docItem = new Document_Item();
12231219
$docItem->add([

0 commit comments

Comments
 (0)