Bug 6657: Prevent biblionumber to be duplicated
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 17 Sep 2015 13:31:55 +0000 (14:31 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 16 Nov 2015 15:35:35 +0000 (12:35 -0300)
commit9ae556a21243ecae669bda2c5f42a67769ae9d78
tree23b759a0765139859828bafe964914334c993025
parentc1aeaf62b9c08d35449aa9822504de8ce79fec62
Bug 6657: Prevent biblionumber to be duplicated

If the biblionumber field is displayed in the framework, on editing a
biblio the field/subfield will be duplicated.
To prevent that this patch adds a check when building the field list.

Test plan:
1/ map biblio.biblionumber with 999$c
2/ Display 999$c in a framework
3/ Edit a biblio using this framework
4/ Save => The field should not have been duplicated

5/ map biblio.biblionumber with 001
6/ Display 001 in a framework
7/ Edit a biblio using this framework
8/ Save => The field should not have been duplicated

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as described, aldo removes duplicate values.
No errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Biblio.pm