Skip to content

Commit 74739bf

Browse files
author
Till Brehm
committed
Fixed #3911 Billing client list edit / cancel
1 parent d30cf16 commit 74739bf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

interface/lib/app.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ public function tpl_defaults() {
305305
//print_r($_SESSION);
306306
if(isset($_SESSION['s']['module']['name'])) {
307307
$this->tpl->setVar('app_module', $_SESSION['s']['module']['name']);
308+
$this->tpl->setVar('session_module', $_SESSION['s']['module']['name']);
308309
}
309310
if(isset($_SESSION['s']['user']) && $_SESSION['s']['user']['typ'] == 'admin') {
310311
$this->tpl->setVar('is_admin', 1);

interface/web/client/templates/client_edit_address.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,5 @@ <h1><tmpl_var name="list_head_txt"></h1>
158158

159159
<div class="clear"><div class="right">
160160
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="client/client_edit.php">{tmpl_var name='btn_save_txt'}</button>
161-
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="client/client_list.php">{tmpl_var name='btn_cancel_txt'}</button>
161+
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="{tmpl_var name='session_module'}/client_list.php">{tmpl_var name='btn_cancel_txt'}</button>
162162
</div></div>

interface/web/client/templates/client_edit_limits.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ <h4 class="panel-title">
450450

451451
<div class="clear"><div class="right">
452452
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_save_txt'}" data-submit-form="pageForm" data-form-action="client/client_edit.php">{tmpl_var name='btn_save_txt'}</button>
453-
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="client/client_list.php">{tmpl_var name='btn_cancel_txt'}</button>
453+
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="{tmpl_var name='session_module'}/client_list.php">{tmpl_var name='btn_cancel_txt'}</button>
454454
</div></div>
455455
</div>
456456

0 commit comments

Comments
 (0)