X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FElements%2FPickCFs;h=dceb9c7ccabac68a2fb3d1b7790522ce9d22879a;hb=HEAD;hp=cf8c92a27a6f792db3d8992beca753217a177f8e;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e;p=freeside.git diff --git a/rt/share/html/Search/Elements/PickCFs b/rt/share/html/Search/Elements/PickCFs index cf8c92a27..dceb9c7cc 100644 --- a/rt/share/html/Search/Elements/PickCFs +++ b/rt/share/html/Search/Elements/PickCFs @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -58,7 +58,7 @@ $m->callback( my @lines; while ( my $CustomField = $CustomFields->Next ) { my %line; - $line{'Name'} = "'$TicketSQLField.{" . $CustomField->Name . "}'"; + $line{'Name'} = "$TicketSQLField.{" . $CustomField->Name . "}"; $line{'Field'} = $CustomField->Name; # Op @@ -88,20 +88,11 @@ while ( my $CustomField = $CustomFields->Next ) { } # Value - if ($CustomField->Type =~ /^Date(Time)?$/) { - my $is_datetime = $1 ? 1 : 0; - $line{'Value'} = { - Type => 'component', - Path => '/Elements/SelectDate', - Arguments => { $is_datetime ? (ShowTime => 1) : (ShowTime => 0), }, - }; - } else { - $line{'Value'} = { - Type => 'component', - Path => '/Elements/SelectCustomFieldValue', - Arguments => { CustomField => $CustomField }, - }; - } + $line{'Value'} = { + Type => 'component', + Path => '/Elements/SelectCustomFieldValue', + Arguments => { CustomField => $CustomField }, + }; push @lines, \%line; }