[ZBX-9984] Incorrect listing of templates to add Created: 2015 Oct 23  Updated: 2017 May 30  Resolved: 2016 Feb 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.0alpha3
Fix Version/s: 3.0.1rc1, 3.2.0alpha1

Type: Incident report Priority: Trivial
Reporter: Brad Turnbough Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: popups, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot-Templates - Mozilla Firefox.png     PNG File linked_templates_popup.png    

 Description   

I created a master template with the name "Zabbix Server - Main Template"

When I go to select what templates I want to link to this master template, it allows me to select itself. I don't believe "Zabbix Server - Main Template" should be included in this list.



 Comments   
Comment by Brad Turnbough [ 2015 Oct 23 ]

zabbix-3.0.0alpha4-56280

Comment by Gunars Pujats (Inactive) [ 2015 Nov 23 ]

(1) No translation strings changed.

iivs CLOSED

Comment by Gunars Pujats (Inactive) [ 2015 Nov 23 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-9984

Comment by Ivo Kurzemnieks [ 2016 Jan 28 ]

(2) Changing group to a different one and then back, the problem still stays.

gunarspujats RESOLVED in r58044.

iivs CLOSED

Comment by Ivo Kurzemnieks [ 2016 Jan 28 ]

(3) Use bccomp() for ID comparison.

gunarspujats RESOLVED in r58044.

iivs CLOSED

Comment by Ivo Kurzemnieks [ 2016 Jan 28 ]

(4) Possible to select that template via multiselect.

gunarspujats RESOLVED in r58108.

iivs CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Feb 01 ]

(5) Linked templates are present in "Hosts / templates in" list. Although validation on save action checks for templates looping, it's better to remove child templates from this list.

gunarspujats RESOLVED in r58108.

iivs CLOSED

Comment by Ivo Kurzemnieks [ 2016 Feb 02 ]

(6)

Undefined index: dbTemplate [templates.php:561 → CView->render() → include() in include\views\configuration.template.edit.php:395]

gunarspujats RESOLVED in r58172.

iivs $data and $this->data both in one line.

REOPENED

gunarspujats RESOLVED in r58177.

iivs CLOSED

Comment by Ivo Kurzemnieks [ 2016 Feb 02 ]

(7) Template A has linked templates B. So B is linked to A. Template B popup shows template A as marked and disabled. It looks the same as if it had already a linked template. It looks like this. Since the checkbox is disabled, it does not affect how the form works, but it looks confusing. Maybe group A shouldn't be there in the list.

gunarspujats As discussed with sasha, parent templates will be shown as disabled in this list.
Won't fix.

Comment by Ivo Kurzemnieks [ 2016 Feb 03 ]

Template A has no linked templates. Link template B under "Hosts / templates in", so A is linked to B. It's done by JS, so now it's still possible to choose B in multiselect and popup. But this has been discussed and decided not to fix.

Comment by Ivo Kurzemnieks [ 2016 Feb 03 ]

TESTED

Comment by Gunars Pujats (Inactive) [ 2016 Feb 16 ]

Fixed in:

  • pre-3.0.1rc1 r58497
  • pre-3.1.0 (trunk) r58499.
Generated at Wed Apr 24 19:47:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.