In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1149 [In-Portal CMS] Front End bug report always 2011-10-19 03:09 2012-07-25 05:33
alex  
alex  
normal  
closed 5.1.3  
fixed  
 
none 5.2.0-B1  
https://groups.google.com/d/topic/in-portal-bugs/k1YXsVFQgKU/discussion
Fixes FieldModifier tag inability to work with multilingual fields
1
0001149: Tag FieldModifier doesn't work with multilingual fields
Tag FieldModifier can be used to make fields on form required from template (not from PHP).

This can be very useful if you don't know PHP, but not very secure, since removing hidden fields, created by FieldModifier tag (from form submit) will also make fields not required.


FieldModifier tag should be placed within hidden field's name before actual field (to be required) is shown, for example:

<input type="hidden" name="<inp2:l_FieldModifier field='cust_LinkAddress' type='required' value='1'/>" value="1"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="l" field="cust_LinkAddress" title="lu_fld_LinkAddress"/>


But this tag isn't working at all, when you try to make multilingual custom field required (don't show "*" mark near field name & don't check if it was filled on submit).
For example this has no effect:

<input type="hidden" name="<inp2:l_FieldModifier field='cust_MLField' type='required' value='1'/>" value="1"/>
<inp2:m_RenderElement name="inp_edit_box_ml" prefix="l" field="cust_MLField" title="lu_fld_MLField"/>
related to 0001029closed  (5.1.3)alex Unable to create a link with required multilingual custom field 
related to 0001030closed  (5.1.3)alex Multilingual custom fields not recorded on "Suggest Link" form 
related to 0000684closed  (Icebox) Redesign "Custom" tab on Section and Catalog Item editing screens 
patch fieldmodifier_tag_ml_field_fix_520.patch (2,710) 2011-10-19 03:09
http://tracker.in-portal.org/file_download.php?file_id=1256&type=bug
patch fieldmodifier_tag_ml_field_fix_513.patch (2,902) 2011-10-19 03:09
http://tracker.in-portal.org/file_download.php?file_id=1257&type=bug
Issue History
2012-07-25 05:33 alex Note Added: 0005119
2012-07-25 05:33 alex Status resolved => closed
2011-10-22 05:26 alex Estimate Points => 1
2011-10-19 03:15 alex Note Added: 0004072
2011-10-19 03:15 alex Status reviewed and tested => resolved
2011-10-19 03:15 alex Fixed in Version => 5.2.0-B1
2011-10-19 03:15 alex Resolution open => fixed
2011-10-19 03:15 alex Assigned To !COMMUNITY => alex
2011-10-19 03:15 alex Changeset attached 5.2.x r14673
2011-10-19 03:14 alex Note Added: 0004071
2011-10-19 03:14 alex Status needs testing => reviewed and tested
2011-10-19 03:14 alex Assigned To => !COMMUNITY
2011-10-19 03:14 alex Developer => alex
2011-10-19 03:14 alex Status active => needs testing
2011-10-19 03:14 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/k1YXsVFQgKU/discussion
2011-10-19 03:11 alex Relationship added related to 0000684
2011-10-19 03:11 alex Relationship added related to 0001030
2011-10-19 03:10 alex Relationship added related to 0001029
2011-10-19 03:09 alex File Added: fieldmodifier_tag_ml_field_fix_513.patch
2011-10-19 03:09 alex New Issue
2011-10-19 03:09 alex File Added: fieldmodifier_tag_ml_field_fix_520.patch
2011-10-19 03:09 alex Change Log Message => Fixes FieldModifier tag inability to work with multilingual fields

Notes
(0004071)
alex   
2011-10-19 03:14   
Will test all together later.
(0004072)
alex   
2011-10-19 03:15   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001149: Tag FieldModifier doesn't work with multilingual fields
(0005119)
alex   
2012-07-25 05:33   
Since 5.2.0 version was released.