-
Incident report
-
Resolution: Fixed
-
Minor
-
2.0.2rc2
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.