Skip to content

Commit aed10dc

Browse files
committed
fix(formanswer): fatal error if Tag plugin is disabled
1 parent 34b230f commit aed10dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/formanswer.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,9 @@ public function parseTags(string $content, PluginFormcreatorTargetInterface $tar
11651165
$domain = PluginFormcreatorForm::getTranslationDomain($form->getID());
11661166

11671167
foreach ($this->questionFields as $questionId => $field) {
1168+
if (!$field->isPrerequisites()) {
1169+
continue;
1170+
}
11681171
$question = $field->getQuestion();
11691172
$name = '';
11701173
$value = '';

0 commit comments

Comments
 (0)