Collaboration / ezapprove issue: Finished collaboration items still show up

Author Message

Walter Rafelsberger

Wednesday 02 June 2010 2:14:59 pm

Hi,

We run a setup using a post-publish workflow with ezapprove. The problem is sometimes Collaboration Items still show up when they were acted upon (approved or rejected) on the collaboration summary page and there's no way in the interface to delete them.

I took a look at
design/admin2/templates/collaboration/view/summary.tpl

The items there get counted and fetched using

latest_item_count=fetch("collaboration","item_count",hash("is_active",true(),"parent_group_id",$parent_group_id))}

and

{include uri="design:collaboration/item_list.tpl" item_list=fetch( "collaboration", "item_list", hash( "limit", $item_limit, "offset", $offset, "is_active", true()) )}
IMHO using "is_active" does not retrieve the right items in a setting with multiple users and different roles. I could not exactly reproduce which items get fetched and which not using "is_active" but here's how I fixed it:

latest_item_count=fetch("collaboration","item_count",hash("status", array(1), "parent_group_id",$parent_group_id))}

{include uri="design:collaboration/item_list.tpl" item_list=fetch( "collaboration", "item_list", hash( "limit", $item_limit, "offset", $offset, "status", array(1) ) )}

So we use "status" in "ezcollab_item" instead of "is_active" to retrieve active items and this is the way at least we expected it to behave.

Could anyone verify if this is bug or feature ;-) ?

Kind regards,
Walter

Tom W

Tuesday 04 January 2011 2:11:13 pm

worked in 4.4.0.

Thanks.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 14:43:40
Script start
Timing: Jan 29 2025 14:43:40
Module start 'layout'
Timing: Jan 29 2025 14:43:40
Module start 'content'
Timing: Jan 29 2025 14:43:40
Module end 'content'
Timing: Jan 29 2025 14:43:40
Script end

Main resources:

Total runtime0.0126 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.6250151.2734
Module start 'layout' 0.00450.0019 739.898436.7266
Module start 'content' 0.00640.0049 776.625090.1406
Module end 'content' 0.01130.0012 866.765629.9922
Script end 0.0125  896.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002117.0116140.0002
Check MTime0.00108.0970140.0001
Mysql Total
Database connection0.00075.528910.0007
Mysqli_queries0.001914.961230.0006
Looping result0.00000.119510.0000
Template Total0.00097.210.0009
Template load0.00075.703410.0007
Template processing0.00021.511710.0002
Override
Cache load0.00054.106410.0005
General
dbfile0.001410.811280.0002
String conversion0.00000.032240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs