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

(-)a/admin/marc_subfields_structure.pl (+1 lines)
Lines 276-281 if ( $op eq 'add_form' ) { Link Here
276
        my %row_data;    # get a fresh hash for the row data
276
        my %row_data;    # get a fresh hash for the row data
277
        $row_data{'new_subfield'} = 1;
277
        $row_data{'new_subfield'} = 1;
278
        $row_data{'subfieldcode'} = '';
278
        $row_data{'subfieldcode'} = '';
279
        $row_data{'maxlength'} = 9999;
279
280
280
        $row_data{tab} = CGI::scrolling_list(
281
        $row_data{tab} = CGI::scrolling_list(
281
            -name   => 'tab',
282
            -name   => 'tab',
(-)a/installer/data/mysql/updatedatabase.pl (+6 lines)
Lines 7824-7829 if ( CheckVersion($DBversion) ) { Link Here
7824
    SetVersion($DBversion);
7824
    SetVersion($DBversion);
7825
}
7825
}
7826
7826
7827
$DBversion = "3.15.00.XXX";
7828
if(CheckVersion($DBversion)) {
7829
    $dbh->do("UPDATE marc_subfield_structure SET maxlength=9999 WHERE maxlength IS NULL OR maxlength=0;");
7830
    print "Upgrade to $DBversion done (Bug 8018: new subfields have a default max length of zero)\n";
7831
    SetVersion($DBversion);
7832
}
7827
7833
7828
=head1 FUNCTIONS
7834
=head1 FUNCTIONS
7829
7835
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/marc_subfields_structure.tt (-2 / +1 lines)
Lines 69-75 To edit the subfields associated with the tag, click 'Subfields' to the right of Link Here
69
<ul>
69
<ul>
70
	<li>Max length
70
	<li>Max length
71
<ul>
71
<ul>
72
	<li>Define the max characters to fill.</li>
72
    <li>Set the max characters to allowed for the subfield. If empty or 0, it defaults to 9999.</li>
73
</ul>
73
</ul>
74
</li>
74
</li>
75
</ul>
75
</ul>
76
- 

Return to bug 8018