In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
674 [In-Portal CMS] Template System bug report N/A 2010-03-30 04:54 2010-11-30 12:48
alex  
alex  
normal  
closed 5.0.3-B1  
fixed  
 
none 5.1.1-B1  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/8daad408a141c040
0
0000674: Add "block_no_data" parameter for m_IfDataExists tag
I propose to add "block_no_data" parameter for m_IfDataExists tag. Will work the same as for m_RenderElement, so this two will work the same, but less code will be required:

COMMON PART:

<inp2:m_DefineElement name="sample_element">
    <inp2:Field name="Name"/>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="no_data">
    no data
</inp2:m_DefineElement>

OLD CASE:
<inp2:m_RenderElement name="sample_content" data_exists="1" block_no_data="no_data"/>

NEW CASE:
<inp2:m_IfDataExists block_no_data="no_data">
    <inp2:Field name="Name"/>
</inp2:m_IfDataExists>

At the end we have no need to create temporary block to use for data presence check.
patch block_no_data_for_mIfDataExists_tag.patch (713) 2010-03-30 04:54
http://tracker.in-portal.org/file_download.php?file_id=426&type=bug
Issue History
2010-11-30 12:48 Dmitry Note Added: 0003086
2010-11-30 12:48 Dmitry Status resolved => closed
2010-08-28 15:11 alex Note Added: 0002698
2010-08-28 15:11 alex Status reviewed and tested => resolved
2010-08-28 15:11 alex Fixed in Version => 5.1.1-B1
2010-08-28 15:11 alex Resolution open => fixed
2010-08-28 15:11 alex Assigned To !COMMUNITY => alex
2010-08-28 15:11 alex Changeset attached 5.1.x r13865
2010-08-27 16:02 Dmitry Note Added: 0002693
2010-08-27 16:02 Dmitry Status needs testing => reviewed and tested
2010-08-27 12:24 Dmitry Type feature request => bug report
2010-08-27 12:24 Dmitry Target Version Icebox => 5.1.1
2010-03-30 04:55 alex Assigned To => !COMMUNITY
2010-03-30 04:55 alex Developer => alex
2010-03-30 04:55 alex Status active => needs testing
2010-03-30 04:54 alex New Issue
2010-03-30 04:54 alex File Added: block_no_data_for_mIfDataExists_tag.patch
2010-03-30 04:54 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/8daad408a141c040

Notes
(0002693)
Dmitry   
2010-08-27 16:02   
Tested fine, but had to apply the patch by hand.

Please commit.
(0002698)
alex   
2010-08-28 15:11   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000674: Add "block_no_data" parameter for m_IfDataExists tag
(0003086)
Dmitry   
2010-11-30 12:48   
Closing released 5.1.1 task.