https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36981

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #168308|0                           |1
        is obsolete|                            |

--- Comment #3 from David Nind <[email protected]> ---
Created attachment 168773
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=168773&action=edit
Bug 36981: Check for subscription length value

Original comment: When editing serial subscription, it is possible to set
amount such as 999999999 in "Subscription length" field.
If no end date is set this could cause an infinite loop.

I changed all concerned fields toward number fields with minimum 0 and
max 2000 (arbitrary but I think it is nearly impossible to reach such an
        high number)

TEST PLAN:
1 - Apply patch
2 - go to Serials -> search -> pick a subsciption
3 - Click on Edit->Edit subscription
4 - fill correct infos and go to page 2
5 - notice that the second field after the label subscription length is
  a number field
6 - try and fill -1 in this field -> notice it is impossible to save
7 - try and fill 5000 in this field -> notice it is impossible to save
8 - Repeat the process py clicking on "Renew" at step (3)
9 - Repeat the process py clicking on "numbering patterns" at step (3)
  (note, you can test the pattern but when clicking done you will be
   prevented from)

Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to