[ZBX-6666] Template and host form ID problem Created: 2013 Jun 05  Updated: 2017 May 30  Resolved: 2013 Jun 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.1.0
Fix Version/s: 2.1.0

Type: Incident report Priority: Minor
Reporter: Pavels Jelisejevs (Inactive) Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 0
Labels: host, template
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There's a problem with the host configuration form: if you open the form and pass an ID of a template as a host ID, the form will crash with multiple undefined index errors. The same thing with template forms and host IDs.

In such cases it should display the "ERROR: No permissions to referred object or it does not exist!" message.



 Comments   
Comment by Ivo Kurzemnieks [ 2013 Jun 05 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-6666

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jun 06 ]

(1) The API call options can be passed directly to the method, there is no need for the $options variable. It is mentioned in out guidelines here https://www.zabbix.org/wiki/Docs/specs/coding_style#Formatting_3

iivs RESOLVED in r36121

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jun 06 ]

(2) We don't need to check IDs in the if statement, you can check hosts and templates themselves.

iivs RESOLVED in r36121

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2013 Jun 06 ]

TESTED.

But please remove the last changelog entry. It is not needed.

Comment by Ivo Kurzemnieks [ 2013 Jun 06 ]

FIXED in 2.1.0 r36128

Comment by Ivo Kurzemnieks [ 2013 Jun 06 ]

CLOSED

Comment by Oleksii Zagorskyi [ 2013 Jun 07 ]

Some sub-issues are not closed, probably Pavels should do it.

jelisejev Done. Thanks.

Generated at Thu Apr 25 08:08:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.