Number only inputs should validated based on normalized result value on input

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.4.7rc1, 8.0.0alpha1
    • Component/s: Frontend (F)
    • None

      Steps to reproduce:

      1. Open Host edit
      2. Add Interfaces -> SNMPv2
      3. Change Max repetition count to 0
      4. Deselect field and observe inline validation error: "This value must be within range 1:2147483647."
      5. Click in Max repetition count field and add a letter so the text is "0s"

      Result:


      Inline error "This value is not a valid integer." is displayed. When field is deselected, value is set to "0" and error "This value must be within range 1:2147483647." is displayed
      Expected:
      Inline validation error for number only fields should be displayed based on normalized value which will be in form field.

       

      Other occurrences (8.0 only):

      • General -> Connectors -> Concurrent sessions
      • Maintenance -> edit period -> days field
      • Service -> Weight 
      • Media type -> Attempts (in ZBXNEXT-9744 branch)

       

            Assignee:
            Zabbix Development Team
            Reporter:
            Ginta Berzina
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: