[Koha-bugs] [Bug 11395] Batch modifications for records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 3 15:10:07 CET 2014


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

Jonathan Druart <jonathan.druart at biblibre.com> changed:

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

--- Comment #67 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 33151
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33151&action=edit
Bug 11395: Fix field_numbers

This fix is a global fix for the MarcModificationTemplate feature.
Some unit tests were missing and some behaviors were wrong.
For instance, if you tried to update a non existent field, the script
crashed.

The following line was completely stupid:
    if $from_field ne $to_subfield

The field_number equals 1 if the user wants to update the first field
and 0 for all fields.

The field_numbers (note the s) variable contains the field numbers to
update. This array is filled if a condition exists (field exists or
field equals).

Signed-off-by: Brendan Gallagher <brendan at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list