[Koha-patches] [PATCH] Fix for Bug 4278, canceling vendor add refreshes wrong

LAURENT Henri-Damien henridamien.laurent at biblibre.com
Wed Jun 2 21:45:45 CEST 2010


Le 02/06/2010 20:07, Owen Leonard a écrit :
> Updating cancel link to return to acqui-home
If you are editing an existing vendor,
I am pretty sure you donot want to be sent back to acqui-home but you
rather want to be sent to the detail page of the supplier.
So Why not "simply add" a condition
<!--TMPL_IF Name="id"-->
<a class="cancel"
href="/cgi-bin/koha/acqui/supplier.pl?suppliedid=<!--TMPL_VAR Name="id"-->">
<!--TMPL_ELSE-->
<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
<!--/TMPL_IF-->
Can you consider my proposition ?
> ---
>  .../prog/en/modules/acqui/supplier.tmpl            |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
> index e07b303..5eeb5ce 100644
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
> @@ -145,7 +145,7 @@ if (f.company.value == "") {
>                  <input type="hidden"  name="invoice_gst" value="0" />
>              <!-- /TMPL_UNLESS -->
>          </fieldset>
> -        <fieldset class="action"><input type="button" value="Save" onclick="check(this.form);" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="id" -->">Cancel</a></fieldset>
> +        <fieldset class="action"><input type="button" value="Save" onclick="check(this.form);" /> <a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">Cancel</a></fieldset>
>          </div>
>      </form>
>  <!--TMPL_ELSE-->



More information about the Koha-patches mailing list