[ZBX-7997] Cannot mass update applications for template items Created: 2014 Mar 28  Updated: 2017 May 30  Resolved: 2014 Apr 16

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

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


 Description   

When mass updating template items the rows for updating applications do not appear.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2014 Mar 28 ]

Must be fixed after ZBX-7545 is closed.

Comment by Ivo Kurzemnieks [ 2014 Apr 07 ]

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

Comment by Ivo Kurzemnieks [ 2014 Apr 07 ]

(1) Translatable string added: 'new'

Eduards Same translation also will be good to use in host muss update

iivs RESOLVED in r44304

Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 09 ]

(2) Application mass update doesn't work for multiple hosts

iivs RESOLVED in r44303

Eduards REOPEN, Why you need two variables? Why need calculate template count if host count > 1?

iivs There was also another bug, if you select items from filter, then 'hostid' was missing and applications couldn't be selected.

RESOLVED in r44426

Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 15 ]

(3) Seems this code from items.php:885-897 can be removed

	// application
	if (count($data['applications']) == 0) {
		array_push($data['applications'], 0);
	}
	if (!empty($data['hostid'])) {
		$data['db_applications'] = DBfetchArray(DBselect(
			'SELECT a.applicationid,a.name'.
			' FROM applications a'.
			' WHERE a.hostid='.zbx_dbstr($data['hostid'])
		));
		order_result($data['db_applications'], 'name');
	}

iivs RESOLVED in r44489
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 16 ]

Tested

Comment by Ivo Kurzemnieks [ 2014 Apr 16 ]

Applications multiselect is now displayed in template item mass update form.

Fixed in pre-2.2.4rc1 r44540 and pre-2.3.0 (trunk) r44541

Generated at Sat Apr 27 03:24:49 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.