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

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 1.8.15rc1
    • Affects Version/s: 1.8.15rc1
    • Component/s: 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!

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

              Created:
              Updated:
              Resolved: