We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9f0f79 commit 8e4d049Copy full SHA for 8e4d049
inc/condition.class.php
@@ -373,9 +373,11 @@ public function getConditionHtml(array $input) : string {
373
foreach ($sections as $section) {
374
$sectionsList[] = $section->getID();
375
}
376
- $questionListExclusion[] = [
377
- PluginFormcreatorSection::getForeignKeyField() => $sectionsList,
378
- ];
+ if (count($sectionsList) > 0) {
+ $questionListExclusion[] = [
+ PluginFormcreatorSection::getForeignKeyField() => $sectionsList,
379
+ ];
380
+ }
381
$html.= '<div class="div_show_condition_field">';
382
$html .= PluginFormcreatorQuestion::dropdownForForm(
383
$form->getID(),
0 commit comments