[ZBX-8241] actions listed multiple times in media type list Created: 2014 May 21  Updated: 2017 May 30  Resolved: 2014 May 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.12, 2.2.3
Fix Version/s: 2.0.13rc1, 2.2.4rc1, 2.3.1

Type: Incident report Priority: Minor
Reporter: richlv Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: actions, mediatypes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File action_operations.png     PNG File media_types.png    

 Description   

see the screenshot - if a media type is used in multiple action operations, that action shows up multiple times in administration -> media types



 Comments   
Comment by Andrejs Čirkovs (Inactive) [ 2014 May 22 ]

fixed in svn.zabbix.com/branches/dev/ZBX-8241

Comment by richlv [ 2014 May 22 ]

oops, just now spotted that the wrong screenshot was added - wanted to include the one from media type list... thanks for figuring it out anyway

Comment by Pavels Jelisejevs (Inactive) [ 2014 May 27 ]

(1) To obtain a unique array we usually use IDs as keys instead of in_array(). This approach is faster easier to read.
andrewtch RESOLVED in r45913, refactored as requested

jelisejev CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2014 May 29 ]

TESTED.

Comment by Andrejs Čirkovs (Inactive) [ 2014 May 29 ]

CLOSED (r45972 for 2.0, r45973 for 2.2, r45975 for trunk)

Comment by richlv [ 2014 May 30 ]

for the record, this is the correct screenshot :

Generated at Fri Apr 26 06:13:07 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.