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

lastvalue & prevvalue for item return 0 for character fields if empty

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.0.0alpha9, 4.0 (plan)
    • None
    • API (A)
    • None
    • Sprint 33, Sprint 34, Sprint 35, Sprint 36, Sprint 37
    • 0.5

      This piece of code seems wrong:

                                      if (isset($requestedOutput['lastvalue'])) {
                                              $item['lastvalue'] = $lastHistory ? $lastHistory['value'] : '0';
                                      }
                                      if (isset($requestedOutput['prevvalue'])) {
                                              $item['prevvalue'] = $prevHistory ? $prevHistory['value'] : '0';
                                      }
      

            Miks.Kronkalns Miks Kronkalns
            garry.shtern@xrtrading.com Garry Shtern
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: