From: <ker...@us...> - 2008-08-06 00:46:55
|
Revision: 14083 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14083&view=rev Author: kerrnel22 Date: 2008-08-06 00:47:05 +0000 (Wed, 06 Aug 2008) Log Message: ----------- [FIX] Correction for year ranges in blank date option. Modified Paths: -------------- trunk/templates/tracker_item_field_input.tpl Modified: trunk/templates/tracker_item_field_input.tpl =================================================================== --- trunk/templates/tracker_item_field_input.tpl 2008-08-06 00:45:38 UTC (rev 14082) +++ trunk/templates/tracker_item_field_input.tpl 2008-08-06 00:47:05 UTC (rev 14083) @@ -233,6 +233,7 @@ {* -------------------- date and time -------------------- *} {elseif $field_value.type eq 'f'} +{$field_value.value} {* ----- Start year --- *} {if isset($field_value.options_array[1]) and $field_value.options_array[1] ne ''} {assign var=start value=$field_value.options_array[1]} @@ -241,7 +242,7 @@ {else} {assign var=start value=-4} {/if} - {if $field_value.year < $start} + {if $field_value.year > 0 and $field_value.year < $start} {assign var=start value=$field_value.year} {/if} @@ -254,7 +255,7 @@ {assign var=end value=+4} {/if} {if $field_value.year > $end} - {assign var=start value=$field_value.year} + {assign var=end value=$field_value.year} {/if} {if $field_value.value eq ''} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |