Inline validation on submit doesn't collect correctly all referenced field values

XMLWordPrintable

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

      Steps to reproduce:

      1. Open Item create form for host that doesn't have any Zabbix agent interfaces
      2. Click submit

      Result:
      Inline validation error is missing Host interface field.

      Expected:
      Missing inline validation error for  Host interface field.

       

      Reason: In function #resolveFieldReferences only collected values of linked fields based on provided values (not rules). As interface field is disabled in such case it is not passed to scope of fields that needs to be validated. If following line is added to form, Expected result is reached, but that is workaround: 

      fields.interfaceid = fields.interfaceid ? fields.interfaceid : null; 

      Temporary fix: Within scope of ZBXNEXT-9851 temporary fix to always pass interfaceid parameter to validateSubmit function will be added. Within scope of this task this temporary fix should be removed.

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

              Created:
              Updated: