View | Details | Raw Unified | Return to bug 10306
Collapse All | Expand All

(-)a/admin/marc_subfields_structure.pl (+4 lines)
Lines 310-315 elsif ( $op eq 'add_validate' ) { Link Here
310
                        ),
310
                        ),
311
                    );
311
                    );
312
                } else {
312
                } else {
313
                    if( my $rs = Koha::MarcSubfieldStructures->search({ frameworkcode => q{}, tagfield => $tagfield, tagsubfield => $tagsubfield }) ) {
314
                        # Overwrite empty kohafield from Default
315
                        $kohafield = $rs->next->kohafield;
316
                    }
313
                    $sth_insert->execute(
317
                    $sth_insert->execute(
314
                        $tagfield,
318
                        $tagfield,
315
                        $tagsubfield,
319
                        $tagsubfield,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-2 / +4 lines)
Lines 143-149 Link Here
143
                <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
143
                <li><label for="link[% loo.row %]">Link:</label><input type="text" id="link[% loo.row %]" name="link" value="[% loo.link %]" size="10" maxlength="80" /> (e.g., Title or Local-Number) <span class="error"><em>NOTE: If you change this value you must ask your administrator to run misc/batchRebuildBiblioTables.pl.</em></span></li>
144
                <li>
144
                <li>
145
                    <label for="kohafield[% loo.row %]">Koha link:</label>
145
                    <label for="kohafield[% loo.row %]">Koha link:</label>
146
                    <select name="kohafield" id="kohafield[% loo.row %]" size="1">
146
                    <!-- This select should be DISABLED; value is submitted by the following hidden input -->
147
                    <select name="kohafield" id="kohafield[% loo.row %]" size="1" disabled>
147
                    [% FOREACH value IN loo.kohafields %]
148
                    [% FOREACH value IN loo.kohafields %]
148
                      [% IF ( value == loo.kohafield ) %]
149
                      [% IF ( value == loo.kohafield ) %]
149
                        <option value="[% value %]" selected="selected">[% value %]</option>
150
                        <option value="[% value %]" selected="selected">[% value %]</option>
Lines 152-157 Link Here
152
                      [% END %]
153
                      [% END %]
153
                    [% END %]
154
                    [% END %]
154
                    </select>
155
                    </select>
156
                    <!-- Do NOT remove this next hidden input! We need it to save kohafield. -->
157
                    <input type="hidden" name="kohafield" value="[% loo.kohafield %]"/>
155
                </li>
158
                </li>
156
			</ol>
159
			</ol>
157
            </fieldset>
160
            </fieldset>
158
- 

Return to bug 10306