[koha-commits] main Koha release repository branch 3.18.x updated. v3.18.01-15-ge8eb28d

Git repo owner gitmaster at git.koha-community.org
Sat Dec 20 00:23:57 CET 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.18.x has been updated
       via  e8eb28df56a5b1811a2c89f1365d9716561da5de (commit)
      from  be1d1df9c5b9b4768822e79672cd093cb93d5678 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e8eb28df56a5b1811a2c89f1365d9716561da5de
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date:   Wed Dec 17 10:43:34 2014 +0100

    Bug 13465: Correct the field prefix ambiguity
    
    This is introduced by Bug 12874.
    
    Without this patch, it's not possible to clear (set to an empty string)
    an item field.
    This appended for field linked to an AV list but even if it's not.
    
    The regex tried to prefix 'my_field' with 'items.' to have
    'items.my_field'. It wanted to take care of the case where the prefix
    already exists (Actually only 1: 'items.cn_source').
    The regex is changed to: "add the prefix only if the string does not
    contain a dot".
    
    Moreover an ambiguity existed on the prefix: in marc_subfield_structure,
    the kohafield is prefixed, but not in the key of the hash sent to
    ModItemFromMarc.
    
    Test plan:
    - edit an item, set a status that is controlled by an authorized value
    examples tested: damaged, not for loan
    - check the status saved correctly
    - edit the item again, reset the status to empty
    - check the status saved correctly
    - edit the item again, reset fields, edit fields
    - check the fields saved correctly
    
    Signed-off-by: Mirko Tietgen <mirko at abunchofthings.net>
    
    Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
    (cherry picked from commit 2f266d94be06af73e72a807d9408136278e8fed4)
    Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>

-----------------------------------------------------------------------

Summary of changes:
 C4/Items.pm |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list