ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5619

Errors when importing a template with an empty screen

    Details

      Description

      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.

        Activity

        Hide
        Oleg Egorov added a comment -

        Resolved in branch svn://svn.zabbix.com/branches/dev/ZBX-5619

        Show
        Oleg Egorov added a comment - Resolved in branch svn://svn.zabbix.com/branches/dev/ZBX-5619
        Hide
        Alexey Fukalov added a comment - - edited

        (1)
        Fix should be done on import level rather than API, as we discussed.

        RESOLVED

        Alexey Fukalov Previous changes were not reverted

        Oleg Egorov RESOLVED

        Alexey Fukalov CLOSED

        Show
        Alexey Fukalov added a comment - - edited (1) Fix should be done on import level rather than API, as we discussed. RESOLVED Alexey Fukalov Previous changes were not reverted Oleg Egorov RESOLVED Alexey Fukalov CLOSED
        Hide
        Alexander Vladishev added a comment -

        Fixed in pre-2.0.4 r30595 and pre-2.1.0 (trunk) r30594.

        Show
        Alexander Vladishev added a comment - Fixed in pre-2.0.4 r30595 and pre-2.1.0 (trunk) r30594.

          People

          • Assignee:
            Unassigned
            Reporter:
            Pavels Jelisejevs
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: