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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt (-1 / +2 lines)
Lines 117-123 Link Here
117
              </li>
117
              </li>
118
              <li>
118
              <li>
119
                <label for="displayorder">Display order: </label>
119
                <label for="displayorder">Display order: </label>
120
                <input type="text" id="displayorder" name="displayorder" value="[% displayorder | html %]" size="3" />
120
                <input type="text" inputmode="numeric" pattern="\d*" id="displayorder" name="displayorder" value="[% displayorder | html %]" size="3" />
121
                <span class="hint">Only numeric characters are allowed</span>
121
              </li>
122
              </li>
122
            </ol>
123
            </ol>
123
          </fieldset>
124
          </fieldset>
(-)a/serials/subscription-frequencies.pl (-2 / +2 lines)
Lines 75-81 if($op && ($op eq 'cud-savenew' || $op eq 'cud-savemod')) { Link Here
75
    foreach (qw/ description unit issuesperunit unitsperissue displayorder /) {
75
    foreach (qw/ description unit issuesperunit unitsperissue displayorder /) {
76
        $frequency->{$_} = $input->param($_);
76
        $frequency->{$_} = $input->param($_);
77
    }
77
    }
78
    $frequency->{unit} = undef if $frequency->{unit} eq '';
78
    $frequency->{unit}         = undef if $frequency->{unit} eq '';
79
    $frequency->{displayorder} = undef if $frequency->{displayorder} eq '';
79
    foreach (qw/issuesperunit unitsperissue/) {
80
    foreach (qw/issuesperunit unitsperissue/) {
80
        $frequency->{$_} = 1 if $frequency->{$_} !~ /\d+/;
81
        $frequency->{$_} = 1 if $frequency->{$_} !~ /\d+/;
81
    }
82
    }
82
- 

Return to bug 29818