Bug 7225

Summary: "Delete all items" should be greyed out when a title has no items
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Ian Walls <koha.sekjal>
Severity: minor    
Priority: P5 - low CC: chris, paul.poulain
Version: 3.6   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Proposed fix
Bug 7225 - "Delete all items" should be greyed out when a title has no items

Description Owen Leonard 2011-11-15 15:26:50 UTC
If a bibliographic record has no items we should not offer the user the option to "delete all items."
Comment 1 Owen Leonard 2011-11-15 17:08:00 UTC Comment hidden (obsolete)
Comment 2 Chris Cormack 2011-12-02 07:26:21 UTC
Created attachment 6510 [details] [review]
Bug 7225 - "Delete all items" should be greyed out when a title has no items

This patch changes the catalog toolbar so that when there are no
items attached to a record the "Delete all items" menu item appears
to be disabled. Clicking it will trigger an alert, "This record
has no items."

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Comment 3 Ian Walls 2011-12-02 13:22:33 UTC
Template only change, adds new conditional and proper warning message.  Marking as Passed QA
Comment 4 Paul Poulain 2011-12-06 16:09:19 UTC
patch pushed, please test
Comment 5 Jared Camins-Esakov 2012-05-23 12:00:09 UTC
Included in 3.6 prior to 3.6.5.