Issue information
-
#035760
-
Fixed
-
2.3.0 Beta 1
-
2.3.0 Beta 2
-
0 - None Assigned
Issue Confirmations
-
Yes (0)No (0)
block template revisions!=blocks using template.
Posted by Marcher Technologies on 08 February 2012 - 08:45 AM
I do not have 102 blocks.... nor 102 templates... I do have 102 Revisions...
if it shows revisions... it should show both separately IMO... but its up to you... fairly certain that count on the box itself isn't WAI... confusing.
http://screencast.com/t/Po3o7x4KhQ
if it shows revisions... it should show both separately IMO... but its up to you... fairly certain that count on the box itself isn't WAI... confusing.
http://screencast.com/t/Po3o7x4KhQ

1) That doesn't happen for me
2) I verified the code is correct
'add_join' => array(
array(
'select' => 'COUNT(b.block_template) as used_count',
'from' => array( 'ccs_blocks' => 'b' ),
'where' => 't.tpb_id=b.block_template',
'type' => 'left',
),
array(
'select' => "COUNT(r.revision_id) as revisions",
'from' => array( 'ccs_revisions' => 'r' ),
'where' => "r.revision_type='blocktemplate' AND r.revision_type_id=t.tpb_id",
'type' => 'left',
)
)
// Then in the skin file
$revisions = sprintf( $this->lang->words['template_managerevisions'], $block['revisions'] );
<li class='icon view'><a href='{$this->settings['base_url']}module=templates&section=revisions&ttype=blocks&type=blocktemplate&id={$block['tpb_id']}'>{$revisions}</a></li>
<span class='desctext'>({$block['used_count']} {$this->lang->words['btemplate_count']})</span>
I can't see how you'd be getting that issue
Finally managed to duplicate
1 user(s) are reading this issue
0 members, 1 guests, 0 anonymous users













