ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7997

Cannot mass update applications for template items

    Details

      Description

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

        Activity

        Hide
        Pavels Jelisejevs (Inactive) added a comment -

        Must be fixed after ZBX-7545 is closed.

        Show
        Pavels Jelisejevs (Inactive) added a comment - Must be fixed after ZBX-7545 is closed.
        Hide
        Ivo Kurzemnieks added a comment -

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

        Show
        Ivo Kurzemnieks added a comment - RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-7997
        Hide
        Ivo Kurzemnieks added a comment - - edited

        (1) Translatable string added: 'new'

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

        Ivo Kurzemnieks RESOLVED in r44304

        Eduards Samersovs CLOSED

        Show
        Ivo Kurzemnieks added a comment - - edited (1) Translatable string added: 'new' Eduards Samersovs Same translation also will be good to use in host muss update Ivo Kurzemnieks RESOLVED in r44304 Eduards Samersovs CLOSED
        Hide
        Eduards Samersovs (Inactive) added a comment - - edited

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

        Ivo Kurzemnieks RESOLVED in r44303

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

        Ivo Kurzemnieks 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 Samersovs CLOSED

        Show
        Eduards Samersovs (Inactive) added a comment - - edited (2) Application mass update doesn't work for multiple hosts Ivo Kurzemnieks RESOLVED in r44303 Eduards Samersovs REOPEN, Why you need two variables? Why need calculate template count if host count > 1? Ivo Kurzemnieks 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 Samersovs CLOSED
        Hide
        Eduards Samersovs (Inactive) added a comment - - edited

        (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');
        	}
        

        Ivo Kurzemnieks RESOLVED in r44489
        Eduards Samersovs CLOSED

        Show
        Eduards Samersovs (Inactive) added a comment - - edited (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'); } Ivo Kurzemnieks RESOLVED in r44489 Eduards Samersovs CLOSED
        Hide
        Eduards Samersovs (Inactive) added a comment -

        Tested

        Show
        Eduards Samersovs (Inactive) added a comment - Tested
        Hide
        Ivo Kurzemnieks added a comment -

        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

        Show
        Ivo Kurzemnieks added a comment - 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

          People

          • Assignee:
            Ivo Kurzemnieks
            Reporter:
            Pavels Jelisejevs (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: