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 (+7 lines)
Lines 7853-7858 if ( CheckVersion($DBversion) ) { Link Here
7853
   SetVersion ($DBversion);
7853
   SetVersion ($DBversion);
7854
}
7854
}
7855
7855
7856
$DBversion = "3.15.00.XXX";
7857
if(CheckVersion($DBversion)) {
7858
    $dbh->do("UPDATE marc_subfield_structure SET maxlength=9999 WHERE maxlength IS NULL OR maxlength=0;");
7859
    print "Upgrade to $DBversion done (Bug 8018: new subfields have a default max length of zero)\n";
7860
    SetVersion($DBversion);
7861
}
7862
7856
=head1 FUNCTIONS
7863
=head1 FUNCTIONS
7857
7864
7858
=head2 TableExists($table)
7865
=head2 TableExists($table)
(-)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 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