From: <sy...@us...> - 2011-03-11 14:36:31
|
Revision: 33323 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=33323&view=rev Author: sylvieg Date: 2011-03-11 14:36:24 +0000 (Fri, 11 Mar 2011) Log Message: ----------- [FIX]tracker: do not use autocomplete as can be null for a user field creator or modificator for an admin Modified Paths: -------------- trunk/templates/tracker_item_field_input.tpl Modified: trunk/templates/tracker_item_field_input.tpl =================================================================== --- trunk/templates/tracker_item_field_input.tpl 2011-03-11 13:43:55 UTC (rev 33322) +++ trunk/templates/tracker_item_field_input.tpl 2011-03-11 14:36:24 UTC (rev 33323) @@ -31,7 +31,7 @@ {* -------------------- user selector -------------------- *} {elseif $field_value.type eq 'u'} {if empty($field_value.options_array) or ($field_value.options_array[0] !=1 and $field_value.options_array[0] !=2) or $tiki_p_admin_trackers eq 'y'} - {if $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y' and $field_value.list|@count > $prefs.user_selector_threshold and $field_value.isMandatory ne 'y'} + {if $prefs.javascript_enabled eq 'y' and $prefs.feature_jquery_autocomplete eq 'y' and $field_value.list|@count > $prefs.user_selector_threshold and $field_value.isMandatory ne 'y' and $field_value.options_array[0] !=1 and $field_value.options_array[0] !=2} {* since autocomplete allows blank entry it can't be used for mandatory selection. *} <input id="user_selector_{$field_value.fieldId}" type="text" size="20" name="{$field_value.ins_id}" value="{if $field_value.options_array[0] eq '2'}{$user}{else}{$field_value.value}{/if}" /> {if $prefs.user_selector_realnames_tracker == 'y'} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |