From 362f58abff3c8439835f8922dcfa3e38c68bbd66 Mon Sep 17 00:00:00 2001 From: Philippe Grand <philippe.grand@atoo-net.com> Date: Wed, 29 Dec 2010 10:17:41 +0000 Subject: [PATCH] Create a back link in check receipt to go back to checks list --- htdocs/compta/paiement/cheque/fiche.php | 4 ++-- htdocs/core/class/html.form.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php index f2f972adc5f..40fd36507f5 100644 --- a/htdocs/compta/paiement/cheque/fiche.php +++ b/htdocs/compta/paiement/cheque/fiche.php @@ -331,7 +331,7 @@ if ($_GET['action'] == 'new') else { $object=$remisecheque; - + $linkback="<a href=\"fiche.php?leftmenu=customers_bills_checks&action=new\">".$langs->trans("BackToList")."</a>"; $paymentstatic=new Paiement($db); $accountlinestatic=new AccountLine($db); $accountstatic=new Account($db); @@ -342,7 +342,7 @@ else print '<table class="border" width="100%">'; print '<tr><td width="20%">'.$langs->trans('Ref').'</td><td colspan="2" >'; - print $html->showrefnav($remisecheque,'ref','', 1, 'number'); + print $html->showrefnav($remisecheque,'ref',$linkback, 1, 'number'); print "</td>"; print "</tr>\n"; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 170e20bc7ca..62f6d31acd7 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3130,7 +3130,7 @@ class Form } /** - * Return a HTML area with the reference of object and a naviagation bar for a business object + * Return a HTML area with the reference of object and a navigation bar for a business object * To add a particular filter on select, you must set $object->next_prev_filter to SQL criteria. * @param object Object to show * @param paramid Name of parameter to use to name the id into the URL link -- GitLab