https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40128

            Bug ID: 40128
           Summary: StripWhitespaceChars can create empty subfields
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Cataloging
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

When StripWhitespaceChars is enabled and the user by chance enters some white
spaces in the input field, Koha generates empty subfield (or even entirely
empty field).

To reproduce:
1. Enable StripWhitespaceChars system preference.
2. Edit an existing record, putting just some spaces into an empty subfield.
Save the record.
3. Go to bibliographic record Normal view and in modal "MARC preview" notice
that the subfield you entered spaces in exists as an empty subfield. If it was
the only subfield in a field, the field exists with no data at all. This is
wrong.

Koha::Filter::MARC::TrimFields::filter should be corrected to avoid this.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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