Skip to content

Commit

Permalink
Fix: regression bug that broke add/edit link form.
Browse files Browse the repository at this point in the history
  • Loading branch information
sque committed Dec 24, 2013
1 parent 4d058a0 commit 5b73455
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion globals/classes/construct.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function form($form, $template='constructors/form.tpl') {
}
return template(array("data" => $form->data,
"extra_data" => $form->info,
"action_url" => htmlspecialchars('.'.get_qs())),
"action_url" => '.?'.get_qs()),
$template);
}

Expand Down
3 changes: 2 additions & 1 deletion includes/pages/mynodes/mynodes_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function form_link() {
}

function output() {
if ($_SERVER['REQUEST_METHOD'] == 'POST' && method_exists($this, 'output_onpost_'.$_POST['form_name'])) return call_user_func(array($this, 'output_onpost_'.$_POST['form_name']));
if ($_SERVER['REQUEST_METHOD'] == 'POST' && method_exists($this, 'output_onpost_'.$_POST['form_name']))
return call_user_func(array($this, 'output_onpost_'.$_POST['form_name']));
global $construct;
$this->tpl['link_method'] = (get('link') == 'add' ? 'add' : 'edit' );
$this->tpl['form_link'] = $construct->form($this->form_link(), __FILE__);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ function type_changed() {
</script>
{/literal}
<script language="JavaScript" type="text/javascript" src="{$js_dir}pickup.js"></script>
<form name="{$extra_data.FORM_NAME}" method="post" action="?">
<input type="hidden" name="query_string" value="{$hidden_qs}" />
<form name="{$extra_data.FORM_NAME}" method="post" action="{$action_url}">
<input type="hidden" name="form_name" value="{$extra_data.FORM_NAME}" />
<table class="table-form" id="{$extra_data.FORM_NAME}_t">
<tr class="table-form-row1">
Expand Down

0 comments on commit 5b73455

Please sign in to comment.