Bug 25910 - Two blank values in authorised value category selection in marc frameworks
Summary: Two blank values in authorised value category selection in marc frameworks
Status: RESOLVED DUPLICATE of bug 20280
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-01 19:05 UTC by Nick Clemens (kidclamp)
Modified: 2020-07-01 21:29 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***