X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FEditCustomFieldSelect;h=b567abab3e3f8ad47ff5b194f482b225d7a3a57e;hb=HEAD;hp=ed6bb146ff65149d09f62ba45d6c1390e7617f70;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Elements/EditCustomFieldSelect b/rt/share/html/Elements/EditCustomFieldSelect index ed6bb146f..b567abab3 100644 --- a/rt/share/html/Elements/EditCustomFieldSelect +++ b/rt/share/html/Elements/EditCustomFieldSelect @@ -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) @@ -50,12 +50,10 @@ %# (perhaps by tweaking the .display style?) % my $selected = 0; % my @category; -% my $id = $NamePrefix . $CustomField->Id; % my $out = $m->scomp('SELF:options', %ARGS, SelectedRef => \$selected, CategoryRef => \@category); % if (!$HideCategory and @category and not $CustomField->BasedOnObj->id) { - %# XXX - Hide this select from w3m? - % foreach my $cat (@category) { % my ($depth, $name) = @$cat; @@ -63,53 +61,77 @@ % }
% } elsif ($CustomField->BasedOnObj->id) { - + % } -% if (@category) { -%# this hidden select is to supply a full list of values, -%# see filter_cascade() in js/cascaded.js - -% } % if ( $RenderType eq 'List' ) {
+
% if ( $checktype eq 'radio' ) { - /> +
+ />
+
% } % my $CFVs = $CustomField->Values; % while ( my $value = $CFVs->Next ) { % my $content = $value->Name; % my $labelid = "$name-". $value->id; +
/>
+
% } +
% } else { +% if (@category) { +%# this hidden select is to supply a full list of values, +%# see filter_cascade_select() in js/cascaded.js + +% }