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

Error in class User method get

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.0 (alpha)
    • 1.8, 1.9.0 (alpha)
    • API (A)
    • None

    Description

      Class: user
      Method: get

      line 144:
      // type
      if(!is_null($options['status']))

      { $sql_parts['where'][] = 'g.users_status='.$options['status']; }

      change to:
      // type
      if(!is_null($options['status'])){ $sql_parts['where'][] = 'u.type='.$options['type']; }



      I'm not sure if this is correct ?
      line: 148
      // status
      if(!is_null($options['status'])){ $sql_parts['where'][] = 'g.users_status='.$options['status']; }

      Souldn't be:
      // status
      if(!is_null($options['status']))

      { $sql_parts['where'][] = 'u.status='.$options['status']; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            yaap yaap
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: