Bug #17166 Anonymous post page shows date custom field as a single drop down
Submitted: 6 Feb 2006 21:19 Modified: 7 Feb 2006 3:39
Reporter: Vlad Didenko Email Updates:
Status: Closed Impact on me:
None 
Category:Eventum Severity:S3 (Non-critical)
Version:1.7.0 OS:Linux (Suse 9.3)
Assigned to: Bryan Alsdorf CPU Architecture:Any

[6 Feb 2006 21:19] Vlad Didenko
Description:
The proper date handling code copied from the new.tpl.html file

How to repeat:
Create a new custom date field and have it show on the anonymoust post form.

Suggested fix:
Have a common template for the code in post.tpl.html and new.tpl.html. As a quick fix I copied the following code from new.tpl.html to post.tpl.html:

-------------Cut---------------
            {elseif $custom_fields[i].fld_type == 'date'}
              {html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" month_empty='' time='--' display_years=false display_days=false month_extra="id=\"custom_field_`$custom_field_id`_month\" tabindex=\"`$tabindex++`\""}
              {include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Month]"}
              {html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" day_empty='' time='--' display_months=false display_years=false day_value_format=%02d day_extra="id=\"custom_field_`$custom_field_id`_day\" tabindex=\"`$tabindex++`\""}
              {include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Day]"}
              {html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" year_empty='' time='--' display_months=false display_days=false start_year=-1 end_year=+2 year_extra="id=\"custom_field_`$custom_field_id`_year\" tabindex=\"`$tabindex++`\""}
              {include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Year]"}

-------------Cut---------------

After line:
 <textarea name="custom_fields[{$custom_fields[i].fld_id}]" rows="10" cols="60"></textarea>
[7 Feb 2006 3:39] Bryan Alsdorf
Thanks for the report. This is now fixed and will be in our next release.