In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Advanced Details Jump to Notes ] Wiki ] View Simple ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000786 [In-Portal CMS] Admin Interfaces bug report always 2010-06-25 13:21 2010-11-30 12:48
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Platform
Status closed   OS
  OS Version
ETA none Fixed in Version 5.1.1-B1 Product Version 5.1.0-RC1
  Target Version 5.1.1 Product Build
Time EstimateNo estimate
Summary 0000786: Column totals block customization issues
Description Recently I was trying to create custom block to display totals under one of the columns in grid I was working on.

Here are several problems I'm came across trying to do that:

    * attempt to define block and give it's name in "total_block" in column definition failed (code doesn't even look there)
    * I somehow managed to get it working, but I asked me to place "'" (single quotes) around inside my block, plus placing "," after that all.

I've managed to fix that inconsistencies and here is the patch.

To Test:

   1. Add totals_render_as="grid_total_row" parameter to "grid" block rendering
   2. Add totals="SUM" on any reasonable field
   3. Add total_block="grid_custom_total_td" to that field definition in grid

Now you must see that custom block content as total under your column. If custom block isn't defined, then default block must be shown (verify that too).

Same override problem issue with column header block (that one with sorting arrow). Combined patch attached for both issues.
Steps To Reproduce
Additional Information
Tags No tags attached.
Reference http://groups.google.com/group/in-portal-bugs/browse_thread/thread/beac2e175d0c347d
Change Log Message
Estimate Points 0
Attached Files patch file icon grid_block_override(totals_and_header)_fix.patch [^] (6,164 bytes) 2010-06-25 13:21 [Show Content]
patch file icon grid_block_override(totals_and_header)_fix_v2.patch [^] (11,014 bytes) 2010-08-02 15:59 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
parent of 0000813closed (5.1.1)alex Support of "currency" parameter for "FieldTotal" tag 
parent of 0000858closed (5.1.1)alex Blank screen, when visiting "Topics" and "Products" list in "Show All" mode 
related to 0000811closed (5.1.1)alex Move grid total function definition to grid 

-  Notes
User avatar (0002639)
Dmitry (manager)
2010-08-02 10:49

I have issues with applying this patch, in particular this part is problematic:

[code]
@@ -672,7 +675,7 @@
 <inp2:m_DefineElement name="grid_total_row">
     GridScrollers['<inp2:m_param name="PrefixSpecial"/>'].SetFooter(
         [
- [' ', <inp2:IterateGridFields grid="$grid" mode="total" force_block="$totals_block" ajax="$ajax"/>]
+ [' ', <inp2:IterateGridFields grid="$grid" mode="total" force_block="grid_js_total_td" ajax="$ajax"/>]
         ]
     );
 </inp2:m_DefineElement>
[/code]

Additionally can we make sure it can be applied along with 0000813 and 0000811 without any conflicts?
User avatar (0002640)
Dmitry (manager)
2010-08-02 10:50

Reminder sent to: alex

Please see my prev. above.
User avatar (0002652)
Dmitry (manager)
2010-08-02 16:29

Tested okay, please commit.
User avatar (0002715)
alex (manager)
2010-08-28 16:20

Fix committed to 5.1.x branch. Commit Message:

Fixes 0000786: Column totals block customization issues
User avatar (0003069)
Dmitry (manager)
2010-11-30 12:48

Closing released 5.1.1 task.

- Related Changesets
In-Portal CMS: 5.1.x r13883
Timestamp: 2010-08-28 16:20:30
Author: alex
Details ] Diff ]
Fixes 0000786: Column totals block customization issues
mod - /in-portal/branches/5.1.x/core/admin_templates/incs/grid_blocks.tpl Diff ] File ]
mod - /in-portal/branches/5.1.x/core/kernel/db/db_tag_processor.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2010-11-30 12:48 Dmitry Note Added: 0003069
2010-11-30 12:48 Dmitry Status resolved => closed
2010-09-11 13:16 alex Relationship added parent of 0000858
2010-08-28 16:20 alex Note Added: 0002715
2010-08-28 16:20 alex Status reviewed and tested => resolved
2010-08-28 16:20 alex Fixed in Version => 5.1.1-B1
2010-08-28 16:20 alex Resolution open => fixed
2010-08-28 16:20 alex Changeset attached 5.1.x r13883
2010-08-02 16:29 Dmitry Note Added: 0002652
2010-08-02 16:29 Dmitry Assigned To !COMMUNITY => alex
2010-08-02 16:29 Dmitry Status needs testing => reviewed and tested
2010-08-02 15:59 alex Assigned To alex => !COMMUNITY
2010-08-02 15:59 alex Status needs work => needs testing
2010-08-02 15:59 alex File Added: grid_block_override(totals_and_header)_fix_v2.patch
2010-08-02 10:50 Dmitry Note Added: 0002640
2010-08-02 10:49 Dmitry Note Added: 0002639
2010-08-02 10:49 Dmitry Assigned To !COMMUNITY => alex
2010-08-02 10:49 Dmitry Status needs testing => needs work
2010-07-31 13:19 Dmitry Target Version Icebox => 5.1.1
2010-07-29 06:44 alex Relationship added parent of 0000813
2010-07-23 16:44 alex Relationship added related to 0000811
2010-06-25 13:21 alex Assigned To => !COMMUNITY
2010-06-25 13:21 alex Developer => alex
2010-06-25 13:21 alex Status active => needs testing
2010-06-25 13:21 alex New Issue
2010-06-25 13:21 alex File Added: grid_block_override(totals_and_header)_fix.patch
2010-06-25 13:21 alex Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/beac2e175d0c347d



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker