Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10226

Error when changing Trigger's prototype name

    Details

      Description

      Error is presented when trying to change trigger's prototype name:

      To reproduce:

      1. Try to change name of some trigger prototype (eg in Template OS Windows). Just change single char.

      2. Press Update

      You would get an error:

      Cannot update trigger prototype
      Details
      Undefined variable: expressionFull [trigger_prototypes.php:210 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CTriggerPrototype->update() ? CTriggerPrototype->updateReal() in include/classes/api/services/CTriggerPrototype.php:751]
      Incorrect trigger expression. Check expression part starting from "".
      

      Now please note: How you can update the trigger from this point:
      A. If you change name BACK (exactly as it was) you could save the trigger proto
      B. If you leave the name changed but would go and change trigger proto EXPRESSION as well - you would be able save the trigger proto

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vzhuravlev Vitaly Zhuravlev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: