X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FEditCustomFieldSelect;h=029115855e4280f8534634d00e99159bde9fce54;hp=ed6bb146ff65149d09f62ba45d6c1390e7617f70;hb=7322f2afedcc2f427e997d1535a503613a83f088;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 diff --git a/rt/share/html/Elements/EditCustomFieldSelect b/rt/share/html/Elements/EditCustomFieldSelect index ed6bb146f..029115855 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-2016 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 + +% }