[ZBX-15483] Undefined index in Item Prototype update. Created: 2019 Jan 21  Updated: 2024 Apr 10  Resolved: 2019 Mar 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.0.3, 4.2.0alpha3
Fix Version/s: 4.0.6rc1, 4.2.0rc1, 4.2 (plan)

Type: Problem report Priority: Trivial
Reporter: Larisa Grigorjeva Assignee: Vasily Goncharenko (Inactive)
Resolution: Fixed Votes: 0
Labels: dependentitems, itemprototype, masteritems, undefinedindex
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Selection_168.png    
Team: Team D
Sprint: Sprint 49 (Feb 2019), Sprint 50 (Mar 2019)
Story Points: 0.5

 Description   

Steps to reproduce:
1. Create host.
2. Create 4 items on host: 1st item is master item, 2nd item depends on 1st, 3rd item depends on 2nd, 4th item depends on 3rd.
3. Create Discovery rule with 1 item prototype. Type - trapper. Save prototype.
4. Open Item Prototype configuration and change type to Dependent item. Choose 4th item as master item.
Get expected error: Incorrect value for field "master_itemid": maximum number of dependency levels reached.

Get undefined index error below the page (NOT expected):

Undefined index: master_itemname [disc_prototypes.php:1188 → CView->render() → include() in include/views/configuration.item.prototype.edit.php:382]


 Comments   
Comment by Vasily Goncharenko (Inactive) [ 2019 Feb 05 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-15483

Comment by Vasily Goncharenko (Inactive) [ 2019 Mar 06 ]

Fixed in:

  • 4.0.6rc1 r90706
  • 4.2.0rc1 (trunk) r90708
Generated at Thu Apr 25 19:19:08 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.