Bugzilla – Attachment 49925 Details for
Bug 16055
Deleting a basket group containing baskets fails silently
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 16055: Do not allow basketgroup deletion unless empty
SIGNED-OFF-Bug-16055-Do-not-allow-basketgroup-dele.patch (text/plain), 3.97 KB, created by
Owen Leonard
on 2016-04-05 18:35:09 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 16055: Do not allow basketgroup deletion unless empty
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-04-05 18:35:09 UTC
Size:
3.97 KB
patch
obsolete
>From 75ed337cb6cedb6a7554e9972c4a82322b239358 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 5 Apr 2016 09:13:05 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 16055: Do not allow basketgroup deletion > unless empty >Content-Type: text/plain; charset="utf-8" > >If a basketgroup has basket attached, it should not be deletable. >This patch just removes the Delete button from the interface if it >cannot be deleted. >When editing a basketgroup, the "Delete basket group" button is no >longer displayed. > >Test plan: >1/ Create a basketgroup >2/ Attach 1+ baskets to this basketgroup >3/ Confirm you are not able to delete it >4/ Remove the baskets from this basketgroup >5/ Confirm you are able to delete it > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt >index e2dac37..4834ccb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt >@@ -146,8 +146,6 @@ function submitForm(form) { > <div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div> > <div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="printbutton"><i class="icon-download"></i>Generate edifact order</a></div> > </div> >- [% ELSE %] >- <div class="btn-group"><a href="[% script_name %]?op=delete&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-small" id="delbutton"><i class="fa fa-remove"></i> Delete basket group</a></div> > [% END %] > [% IF (name && closedbg) %] > <h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> >@@ -341,7 +339,9 @@ function submitForm(form) { > <td> > <input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" /> > <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> >- <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> >+ [% UNLESS basketgroup.basketsqty %] >+ <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> >+ [% END %] > </td> > </tr> > [% END %] >-- >2.1.4
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 16055
:
49897
|
49925
|
49932