Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials
Owen Leonard 57221e083b
Bug 24010: Number of issues to display to staff accepts non-integer values
This patch modifies the subscription entry form so that it will perform
a check on the staffdisplaycount and opacdisplaycount fields before
proceding to the second step. It verifies that the values are numeric.

The changes are made in the style of the existing form validation, which
should be rewritten to either use the validation plugin or to peform
checks in a way that all checks are run before warning the user.
However, this smaller change will work in the meantime.

To test, apply the patch and go to Serials -> New subscription.

- Fill out the form with at least the required fields, but put something
  other than a number if the "Number of issues to display to staff" and
  "Number of issues to display to the public" with non-numeric characters.
- When you click the "Next" button you should get an error message,
  "Number of issues to display to staff must be a number."
- Correct the issues to display to staff field and submit again.
- You should get a different error message, "Number of issues to display
  to the public must be a number."
- Correct this field and you should be able to proceed to the next step.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-07-05 10:57:16 -03:00
..
acqui-search-result.tt
acqui-search.tt Bug 29055: Focus on keyword field when subscription biblio search window opens 2022-06-25 10:54:37 -03:00
checkexpiration.tt
claims.tt Bug 30609: (follow-up) Add markup comments 2022-06-25 10:55:26 -03:00
result.tt
routing-preview-slip.tt
routing-preview.tt Bug 27631: reports and serials folders 2022-04-20 09:03:38 -10:00
routing.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
serials-collection.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
serials-edit.tt Bug 27631: reports and serials folders 2022-04-20 09:03:38 -10:00
serials-home.tt Bug 27631: reports and serials folders 2022-04-20 09:03:38 -10:00
serials-search.tt Bug 30973: Serials search fix body id 2022-06-16 09:42:51 -03:00
showpredictionpattern.tt Bug 27631: reports and serials folders 2022-04-20 09:03:38 -10:00
subscription-add.tt Bug 24010: Number of issues to display to staff accepts non-integer values 2022-07-05 10:57:16 -03:00
subscription-batchedit.tt
subscription-bib-search.tt Bug 29055: Focus on keyword field when subscription biblio search window opens 2022-06-25 10:54:37 -03:00
subscription-detail.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
subscription-frequencies.tt
subscription-history.tt
subscription-numberpatterns.tt
subscription-renew.tt Bug 27631: reports and serials folders 2022-04-20 09:03:38 -10:00
viewalerts.tt