Skip to content

Commit

Permalink
fix(section): no validation button when adding section
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 9, 2020
1 parent a0a6903 commit a129a00
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ajax/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@
$section_id = (int) $_REQUEST['section_id'];
$section->getFromDB($section_id);
}

$section->showForm($section_id);
2 changes: 1 addition & 1 deletion inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static function showForForm(CommonDBTM $item, $withtemplate = '') {

// add a section
echo '<li class="plugin_formcreator_section not-sortable">';
echo '<a href="javascript:plugin_formcreator.showSectionForm(' . $item->getID() . ', \'' . $token . '\');">';
echo '<a href="javascript:plugin_formcreator.showSectionForm(' . $item->getID() . ');">';
echo '<i class="fas fa-plus"></i>&nbsp;';
echo __('Add a section', 'formcreator');
echo '</a>';
Expand Down
2 changes: 1 addition & 1 deletion inc/section.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public function showForm($ID, $options = []) {
echo '</tr>';

$this->showFormButtons($options + [
'candel' => false
'candel' => false,
]);
Html::closeForm();
}
Expand Down

0 comments on commit a129a00

Please sign in to comment.