[ZBX-6923] Mass delete in template list don't work Created: 2013 Aug 23  Updated: 2017 May 30  Resolved: 2013 Sep 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.1.3
Fix Version/s: 2.1.4, 2.2.0

Type: Incident report Priority: Major
Reporter: Oleg Egorov (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: delete, template
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I select 1 element -> Action "delete selected" -> frontend ignore template deleting



 Comments   
Comment by Oleg Egorov (Inactive) [ 2013 Aug 23 ]

(1) And "Delete and clear selected templates?" don't work

vitalij_zab RESOLVED in r38175

sasha CLOSED

Comment by Vitalij Romanovskij (Inactive) [ 2013 Aug 26 ]

fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-6923

Comment by Alexander Vladishev [ 2013 Aug 27 ]

(2) "Delete selected" works also as "Delete selected with linked elements"

Regression. Broken in version 1.9.1 by:

r16195 | artem | 2010-12-17 12:31:15 +0200 (Fri, 17 Dec 2010) | 2 lines

 - [ZBXNEXT-588] improved template, host, proxy form view, dashboard screen (Aly,Vedmak)
 - [ZBXNEXT-587] added support of multiple host interfaces (Aly,asaveljevs,Sasha,Vedmak,)

It should be fixed in 2.0.x too.

vitalij_zab fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-6923_branch

sasha REOPENED

  • svn://svn.zabbix.com/branches/dev/ZBX-6923 (trunk)
    • "Delete selected" removes all linked elements
    • "Delete selected with linked elements" doesn't work
Undefined index: templates [templates.php:390 → CAPIObject->massUpdate() → CAPIObject->__call() → czbxrpc::call() → czbxrpc::callAPI() → call_user_func() → CTemplate->massUpdate() in frontends/php/api/classes/CTemplate.php:803]
Invalid argument supplied for foreach() [templates.php:390 → CAPIObject->massUpdate() → CAPIObject->__call() → czbxrpc::call() → czbxrpc::callAPI() → call_user_func() → CTemplate->massUpdate() in frontends/php/api/classes/CTemplate.php:813]
Argument 1 passed to CTemplate::isWritable() must be an array, null given, called in frontends/php/api/classes/CTemplate.php on line 1048 and defined [templates.php:390 → CAPIObject->massUpdate() → CAPIObject->__call() → czbxrpc::call() → czbxrpc::callAPI() → call_user_func() → CTemplate->massUpdate() → CTemplate->massRemove() → CTemplate->isWritable() in frontends/php/api/classes/CTemplate.php:1093]
You do not have permission to perform this operation.
  • svn://svn.zabbix.com/branches/dev/ZBX-6923_branch (2.0)
    • "Delete selected" removes all linked elements
    • "Delete selected with linked elements" doesn't work
Undefined index: templates [api/classes/CTemplate.php:1286]
Invalid argument supplied for foreach() [api/classes/CTemplate.php:1296]
You do not have permission to perform this operation.

vitalij_zab fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-6923_branch in r38196

sasha svn://svn.zabbix.com/branches/dev/ZBX-6923_branch has been successfully tested! You can merge it.

sasha CLOSED

Comment by Alexander Vladishev [ 2013 Aug 27 ]

(3) The code should be fixed in hosts.php too.

vitalij_zab fixed in r38195

sasha CLOSED

Comment by Vitalij Romanovskij (Inactive) [ 2013 Aug 29 ]

Bug fixed in svn://svn.zabbix.com/branches/2.0 in r38210

Comment by Alexander Vladishev [ 2013 Aug 29 ]

(4) Templates form: recently added templates disappear if there was an error when saving

vitalij_zab FIXED in r38220

sasha CLOSED

Comment by Alexander Vladishev [ 2013 Aug 29 ]

(5) objectName should be reverted to "templates"

vitalij_zab FIXED in r38220

sasha CLOSED

Comment by Alexander Vladishev [ 2013 Aug 29 ]

Successfully tested! Please review my changes in r38225.

vitalij_zab CLOSED

Comment by Vitalij Romanovskij (Inactive) [ 2013 Aug 30 ]

fixed in pre-2.0.9 r38215 and pre-2.1.4 (trunk) r38230

Comment by richlv [ 2013 Aug 31 ]

(6) i believe changelog entry should go in 2.1.4 section, not 2.1.3

sasha CLOSED

Generated at Fri Apr 19 21:55:17 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.