Skip to content

Commit 5b73455

Browse files
committed
Fix: regression bug that broke add/edit link form.
1 parent 4d058a0 commit 5b73455

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

globals/classes/construct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function form($form, $template='constructors/form.tpl') {
3232
}
3333
return template(array("data" => $form->data,
3434
"extra_data" => $form->info,
35-
"action_url" => htmlspecialchars('.'.get_qs())),
35+
"action_url" => '.?'.get_qs()),
3636
$template);
3737
}
3838

includes/pages/mynodes/mynodes_link.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function form_link() {
3939
}
4040

4141
function output() {
42-
if ($_SERVER['REQUEST_METHOD'] == 'POST' && method_exists($this, 'output_onpost_'.$_POST['form_name'])) return call_user_func(array($this, 'output_onpost_'.$_POST['form_name']));
42+
if ($_SERVER['REQUEST_METHOD'] == 'POST' && method_exists($this, 'output_onpost_'.$_POST['form_name']))
43+
return call_user_func(array($this, 'output_onpost_'.$_POST['form_name']));
4344
global $construct;
4445
$this->tpl['link_method'] = (get('link') == 'add' ? 'add' : 'edit' );
4546
$this->tpl['form_link'] = $construct->form($this->form_link(), __FILE__);

templates/basic/includes/pages/mynodes/mynodes_link_form_link.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ function type_changed() {
8888
</script>
8989
{/literal}
9090
<script language="JavaScript" type="text/javascript" src="{$js_dir}pickup.js"></script>
91-
<form name="{$extra_data.FORM_NAME}" method="post" action="?">
92-
<input type="hidden" name="query_string" value="{$hidden_qs}" />
91+
<form name="{$extra_data.FORM_NAME}" method="post" action="{$action_url}">
9392
<input type="hidden" name="form_name" value="{$extra_data.FORM_NAME}" />
9493
<table class="table-form" id="{$extra_data.FORM_NAME}_t">
9594
<tr class="table-form-row1">

0 commit comments

Comments
 (0)