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

Importing of new template doesn't work

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 1.8
    • Frontend (F)
    • None
    • na

      how to reproduce:
      1. export single template
      2. edit the xml file (change the template name)
      3. import it and you'll get Fatal error: Call to undefined method CTemplate::add() in include/export.inc.php on line 585

      rev 8641 include/export.inc.php, line 585 states:
      $current_host = CTemplate::add($host_db);

      but i believe it should be
      $current_host = CTemplate::create($host_db);

            Unassigned Unassigned
            pavelradaev Pavel Radaev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: