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

Hosts and screens items with similar ids are deleted without specified resourcetype

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.15rc1
    • 1.8.15rc1
    • Frontend (F)

      We have a mistake in the source code:
      include/hosts.inc.php:
      // delete screen items
      DBexecute('DELETE FROM screens_items WHERE '.DBcondition('resourceid',$hostids)).' AND resourcetype='.SCREEN_RESOURCE_HOST_TRIGGERS;

      It calls this query:
      Time:0.000515 SQL: DELETE FROM screens_items WHERE (resourceid IN (89))

      The last round bracket should be after SCREEN_RESOURCE_HOST_TRIGGERS!

            Unassigned Unassigned
            dotneft Alexey Pustovalov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: