Bug 7225 - "Delete all items" should be greyed out when a title has no items
Summary: "Delete all items" should be greyed out when a title has no items
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: 3.6
Hardware: All All
: P5 - low minor (vote)
Assignee: Owen Leonard
QA Contact: Ian Walls
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 15:26 UTC by Owen Leonard
Modified: 2013-12-05 19:57 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Proposed fix (2.04 KB, patch)
2011-11-15 17:08 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 7225 - "Delete all items" should be greyed out when a title has no items (2.05 KB, patch)
2011-12-02 07:26 UTC, Chris Cormack
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.