Bug 4849 - Cannot delete records from Labeled MARC view
Summary: Cannot delete records from Labeled MARC view
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: rel_3_2
Hardware: All All
: PATCH-Sent (DO NOT USE) normal (vote)
Assignee: Owen Leonard
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 18:14 UTC by Jared Camins
Modified: 2012-10-25 22:52 UTC (History)
1 user (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.50 KB, patch)
2010-08-25 18:38 UTC, Owen Leonard
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Camins 2010-06-03 18:14:45 UTC
Records with no items cannot be deleted from the Labeled MARC view. The error message that comes up says "There are [ 1 ] item(s) attached to this record / You must delete all items before deleting this record." Trying to delete the same record from the Normal view works fine. This may be related to bug 2310 (http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2310 )
Comment 1 Owen Leonard 2010-08-25 18:38:09 UTC
Created attachment 2572 [details] [review]
Proposed fix

The template checks for a "count" variable (item count) to see whether it should allow deletion of the biblio record. For some reason labeledMARCdetail.pl hard-coded this as 1, which meant the template always thought was 1 item.
    
This patch also adds an item count check on the display of "Delete all items," disabling it if there are no items.
Comment 2 Jared Camins 2010-11-01 15:32:25 UTC
Fixed as of 3.2-RC.