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

Errors when importing a template with an empty screen

XMLWordPrintable

      When I try to import a template, that has a screen with no items, the template is imported, but a see an error:

      Invalid argument supplied for foreach() [api/classes/CTemplateScreen.php:545]

      When I try to import the same template again, I receive a different error:

      Invalid argument supplied for foreach() [api/classes/CScreen.php:564]
      Argument 1 passed to CScreenItem::updateByPosition() must be an array, string given, called in /opt/lampp/htdocs/zabbix/trunk/frontends/php/api/classes/CScreen.php on line 567 and defined [api/classes/CScreenItem.php:187]
      Invalid argument supplied for foreach() [api/classes/CScreenItem.php:202]

      I've attached the exported XML file.

            Unassigned Unassigned
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: