[Koha-bugs] [Bug 3264] Uncloning a dropdown list in MARC authorities/biblio editor may clear all subfields (see comment 17)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 15 18:05:04 CET 2012


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

Jared Camins-Esakov <jcamins at cpbibliography.com> changed:

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

--- Comment #21 from Jared Camins-Esakov <jcamins at cpbibliography.com> 2012-02-15 17:05:04 UTC ---
Created attachment 7661
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7661
Bug 3264 UnCloneField() / minus button in MARC editor can clear all subfields
(authorities AND biblio)

All subfields following the removed subfield were not saved.
Problem is in C4/Biblio routine TransformHtmlToMarc.
If the field is emptied, the param list contains a code param but no subfield
param. The while loop handling the subfields could not handle that. Also added
a FIXME because the whole routine depends on an assumption about the order of
cgi parameters that is not strictly guaranteed.

Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>
I was unable to replicate the problem, but can confirm that the patch does
not break anything under any of the following platforms/browsers:
Mac OS X 10.6.8:
Chrome 16.0.912.77
Firefox 9.0.1

Windows 7:
Firefox 3.6.3
Firefox 9.0.1
IE 8.0.7600.16385

Ubuntu 11.10
Firefox 8.0
Chromium 15.0.874.106 (Developer Build 107270 Linux)

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list