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

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0alpha9, 4.0 (plan)
    • Component/s: API (A)
    • Labels:
      None
    • Team:
      Team D
    • Sprint:
      Sprint 33, Sprint 34, Sprint 35, Sprint 36, Sprint 37
    • Story Points:
      0.5

      Description

      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';
                                      }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: