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

XMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Trivial
    • 4.0.0alpha9, 4.0 (plan)
    • Affects Version/s: None
    • Component/s: 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';
                                      }
      

            Assignee:
            Miks Kronkalns
            Reporter:
            Garry Shtern
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: