From: Marc L. <ma...@la...> - 2011-09-05 19:39:07
|
thank you, that was annoying On 2011-09-05 2:02 PM, <nk...@us...> wrote: > Revision: 36949 > http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=36949&view=rev > Author: nkoth > Date: 2011-09-05 18:01:48 +0000 (Mon, 05 Sep 2011) > Log Message: > ----------- > [MOD][FIX] If datetime field is mandatory and starting value is set to blank, it should be better to keep it blank so the user is forced to choose something rather than default to something which may be wrong > > Modified Paths: > -------------- > trunk/templates/trackerinput/datetime.tpl > > Modified: trunk/templates/trackerinput/datetime.tpl > =================================================================== > --- trunk/templates/trackerinput/datetime.tpl 2011-09-05 16:52:16 UTC (rev 36948) > +++ trunk/templates/trackerinput/datetime.tpl 2011-09-05 18:01:48 UTC (rev 36949) > @@ -27,7 +27,7 @@ > {assign var=time value=$field.value} > {/if} > {if $field.options_array[0] ne 't'} > - {if ($field.isMandatory ne 'y' and (isset($field.options_array[3]) and ($field.options_array[3] eq 'blank' or $field.options_array[3] eq 'empty'))) or (isset($inExportForm) and $inExportForm eq 'y')} > + {if ((isset($field.options_array[3]) and ($field.options_array[3] eq 'blank' or $field.options_array[3] eq 'empty'))) or (isset($inExportForm) and $inExportForm eq 'y')} > {html_select_date prefix=$field.ins_id time=$time start_year=$start end_year=$end field_order=$prefs.display_field_order all_empty=" "} > {else} > {html_select_date prefix=$field.ins_id time=$time start_year=$start end_year=$end field_order=$prefs.display_field_order} > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Tikiwiki-cvs mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs |