---- Reported by firstname.lastname@example.org 2009-10-22 14:17:56 ----
In the marc editor, if the item type is marked as mandatory, the item type is automatically filled in with the first value in the list alphabetically. The desired behavior would be for the default value to be empty, which would prompt the usual mandatory warning if an actual item type isn't selected by the librarian. Otherwise, you may end up with junk item types if the librarian fails to change the value.
Incidentally, authorized values that are marked as mandatory do the same thing in the marc editor; however, if you add an empty authorized value to your authorized value list, that becomes the default value in the marc field, which then triggers the mandatory warning if the librarian doesn't change the value. You can't use this workaround with item type, though, because Koha won't let you add an empty item type.
It seems to work the same way with biblioitem-level item types and item-level itemtypes.
I'm going to see if Kyle can add a quick patch for this.
--- Bug imported by email@example.com 2010-05-21 01:14 UTC ---
This bug was previously known as _bug_ 3727 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3727
Actual time not defined. Setting to 0.0
Created attachment 3587 [details] [review]
Corrects the behaviour of the itemtype selectbox in addbiblio.pl
I created a patch that adds a default empty value to the itemtype selectbox when the subfield is mandatory and has an empty default value.
Patch attached, please test
Created attachment 3589 [details] [review]
I made a mistake in my last patch, so I here is a corrected version of the patch.
Works as expected: signed off.
Pushed, please test