Bugzilla – Attachment 7398 Details for
Bug 4969
Vendors can not be deleted / show only active vendors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Bug-4969-allows-deletion-of-vendor-with-no-basket.patch (text/plain), 2.36 KB, created by
Adrien SAURAT
on 2012-01-31 10:32:03 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Adrien SAURAT
Created:
2012-01-31 10:32:03 UTC
Size:
2.36 KB
patch
obsolete
>From bc1610cccbf51f9c61b8899e156c2af369e536be Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Tue, 31 Jan 2012 11:28:56 +0100 >Subject: [PATCH] Bug 4969: allows deletion of vendor with no basket > >--- > acqui/supplier.pl | 6 +++++- > .../prog/en/includes/acquisitions-toolbar.inc | 4 ++++ > 2 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/acqui/supplier.pl b/acqui/supplier.pl >index 3faa560..a24db4a 100755 >--- a/acqui/supplier.pl >+++ b/acqui/supplier.pl >@@ -117,7 +117,11 @@ if ( $op eq 'display' ) { > contracts => $contracts, > ); > } elsif ( $op eq 'delete' ) { >- DelBookseller($id); >+ # no further message needed for the user >+ # the DELETE button only appears in the template if basketcount == 0 >+ if ( $supplier->{'basketcount'} == 0 ) { >+ DelBookseller($id); >+ } > print $query->redirect('/cgi-bin/koha/acqui/acqui-home.pl'); > exit; > } else { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc >index f81b303..0385d94 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc >@@ -16,6 +16,7 @@ > new YAHOO.widget.Button("newsupplier"); > new YAHOO.widget.Button("newbasket"); > new YAHOO.widget.Button("editsupplier"); >+ new YAHOO.widget.Button("deletesupplier"); > new YAHOO.widget.Button("receive"); > new YAHOO.widget.Button("newcontract"); > new YAHOO.widget.Button("editcontracts"); >@@ -46,6 +47,9 @@ > [% IF ( id ) %] > [% IF ( CAN_user_acquisition_vendors_manage ) %] > <li><a id="editsupplier" href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% id %]&op=enter">Edit</a></li> >+ [% UNLESS basketcount %] >+ <li><a id="deletesupplier" href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% id %]&op=delete">Delete</a></li> >+ [% END %] > <li><a id="newcontract" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&booksellerid=[% id %]">New Contract</a></li> > <li><a id="editcontracts" href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% id %]">Contracts</a></li> > [% UNLESS ( basketcount ) %] >-- >1.7.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4969
:
7398
|
7532
|
7830
|
7982
|
8071
|
8072
|
60803
|
60807
|
60893
|
60894
|
60895
|
60896