http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9759

M. de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15985|0                           |1
        is obsolete|                            |

--- Comment #3 from M. de Rooy <[email protected]> ---
Created attachment 17028
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17028&action=edit
Bug 9759: last subfield can be deleted

In authorities and biblios editors, a repeatable subfield can be deleted (small
icon next to input).
Clone subfields are really deleted but last existing subfield is just set empty
instead of deleted.
But when same field is repeated, the last subfield can be deleted.

This patch corrects this, last subfield of a field, even repeated, can not be
deleted.

Test plan :
- Edit a biblio
- Choose a repeatable field with a repeatable subfield : ie 600 and $x
- Edit 600, enter a text in $x : ie "subA"
- Clone $x
- Delete second $x
=> second $x is deleted
- Delete first $x
=> $x is not deleted but set empty
- Edit 600, enter a text in $x : ie "subA"
- Clone 600
- Edit second 600, enter a text in $x : ie "subB"
- Clone $x of second 600
- Delete second $x of second 600
=> second $x of second 600 is deleted
- Delete first $x of second 600
=> with this patch : first $x of second 600 is set empty
=> without this patch : first $x of second 600 is deleted, second 600 has no $x
anymore
Perform same test plan on an authority.

Signed-off-by: Kyle M Hall <[email protected]>
Signed-off-by: Marcel de Rooy <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to