X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FSelectCustomFieldValue;h=10047c0bce7573a57e447728e5dd75625c9dc781;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=5c2e2ceb7e854b499c8d717adca424f2f54b2b17;hpb=85e677b86fc37c54e6de2b06340351a28f5a5916;p=freeside.git diff --git a/rt/share/html/Elements/SelectCustomFieldValue b/rt/share/html/Elements/SelectCustomFieldValue index 5c2e2ceb7..10047c0bc 100755 --- a/rt/share/html/Elements/SelectCustomFieldValue +++ b/rt/share/html/Elements/SelectCustomFieldValue @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,21 +45,37 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -% $m->callback( Name => $Name, CustomField => $CustomField ); +% $m->callback( Name => $Name, CustomField => $CustomField, Default => \$Default ); +% $Default = "" unless defined $Default; % if ($CustomField->Type =~ /Select/i) { % my $values = $CustomField->Values; +% } elsif ($CustomField->Type =~ /^Date(Time)?$/) { +<& /Elements/SelectDate, ShowTime => ($1 ? 1 : 0), Name => $Name, Value => $Default &> +% } elsif ( $CustomField->Type eq 'Autocomplete' ) { + + +% } else { + % } <%args> $Name => undef -$CustomField =>undef +$CustomField => undef +$Default => undef