Bug 25910

Summary: Two blank values in authorised value category selection in marc frameworks
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2020-07-01 19:05:30 UTC
When selecting the authorised value for a marc subfield in the frameworks:

admin/marc_subfields_structure.pl

There are two blank values at the top of the dropdown

One comes from the template:
179                                 <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
180                                 <select name="authorised_value" id="authorised_value[% loo.row | html %]" size="1"    >
181                                 <option value=""></option>
182                                 [% FOREACH value IN loo.authorised_values %]
183                                     [% IF ( value == loo.authorised_value ) %]


And another comes from the db because we add a blank category by default (bug 17216) installer/data/mysql/mandatory/auth_val_cat.sql
  1 INSERT IGNORE INTO authorised_value_categories( category_name, is_system )
  2     VALUES
  3     ('', 1), 
  4     ('Asort1', 1),
  5     ('Asort2', 1),
Comment 1 Katrin Fischer 2020-07-01 21:29:55 UTC

*** This bug has been marked as a duplicate of bug 20280 ***