X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FSelectCustomFieldValue;h=f0c614b0f3c6088a1f03f9967efc60af684c0f2c;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=5c2e2ceb7e854b499c8d717adca424f2f54b2b17;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Elements/SelectCustomFieldValue b/rt/share/html/Elements/SelectCustomFieldValue index 5c2e2ceb7..f0c614b0f 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-2019 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