Skip to content

Commit 2e33592

Browse files
committed
fix(condition): misordered display on edit
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 0d41650 commit 2e33592

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

inc/condition.class.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,6 @@ public function showConditionsForItem($form, PluginFormcreatorConditionnableInte
224224
echo '</th>';
225225
echo '</tr>';
226226

227-
// Get conditionsexisting conditions for the item
228-
$conditions = $this->getConditionsFromItem($item);
229-
reset($conditions);
230-
$condition = array_shift($conditions);
231-
if ($condition !== null) {
232-
echo $condition->getConditionHtml($form, PluginFormcreatorQuestion::class, 0, true);
233-
}
234-
foreach ($conditions as $condition) {
235-
echo $condition->getConditionHtml($form, PluginFormcreatorQuestion::class, 0);
236-
}
237-
238227
echo '<tr">';
239228
echo '<td colspan="4">';
240229
Dropdown::showFromArray(
@@ -248,6 +237,17 @@ public function showConditionsForItem($form, PluginFormcreatorConditionnableInte
248237
);
249238
echo '</td>';
250239
echo '</tr>';
240+
241+
// Get conditionsexisting conditions for the item
242+
$conditions = $this->getConditionsFromItem($item);
243+
reset($conditions);
244+
$condition = array_shift($conditions);
245+
if ($condition !== null) {
246+
echo $condition->getConditionHtml($form, PluginFormcreatorQuestion::class, 0, true);
247+
}
248+
foreach ($conditions as $condition) {
249+
echo $condition->getConditionHtml($form, PluginFormcreatorQuestion::class, 0);
250+
}
251251
}
252252

253253
/**

0 commit comments

Comments
 (0)