Skip to content

Commit

Permalink
Allow continue to editor from wizard
Browse files Browse the repository at this point in the history
Choosing continue with no option selected goes to editor instead of
staying in wizard and requiring a selection.
  • Loading branch information
geekwright committed Apr 25, 2017
1 parent 3c748b8 commit c5108d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function obtainPage()

$page = '';

$form = new XoopsThemeForm(_MD_GWIKI_WIZARD_NEWPAGE_PROMPT, 'gwizardform', 'wizard.php', 'POST', $token);
$form = new XoopsThemeForm(_MD_GWIKI_WIZARD_NEWPAGE_PROMPT, 'gwizardform', 'wizard.php', 'get');

$form_ns_select = new XoopsFormSelect(_MD_GWIKI_WIZARD_PICK_NAMESPACE, 'nsid'); //, [mixed $value = null], [int $size = 1], [bool $multiple = false] )
$form_ns_select->addOptionArray($options);
Expand Down Expand Up @@ -760,6 +760,12 @@ function chooseWizard()
doGallery();
break;
default:
if (isset($_POST['wikiwizard_submit'])) {
$params = array(
'page' => $page,
);
redirect_to_edit($params);
}
chooseWizard();
break;
}
Expand Down

0 comments on commit c5108d0

Please sign in to comment.