X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FEditCustomFieldCombobox;h=e0fc0025a5cbad8ad599d06fb5f2be44bb058133;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=718ff303525080c129f8cf60efd876d7238bf039;hpb=919e930aa9279b3c5cd12b593889cd6de79d67bf;p=freeside.git diff --git a/rt/share/html/Elements/EditCustomFieldCombobox b/rt/share/html/Elements/EditCustomFieldCombobox index 718ff3035..e0fc0025a 100644 --- a/rt/share/html/Elements/EditCustomFieldCombobox +++ b/rt/share/html/Elements/EditCustomFieldCombobox @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,17 +46,25 @@ %# %# END BPS TAGGED BLOCK }}} % while ($Values and my $value = $Values->Next and $Multiple) { -<% $value->Content %> + +
% } % (!$Multiple or !$MaxValues or !$Values or $Values->Count < $MaxValues) or return; <& /Widgets/ComboBox, - Name => $NamePrefix . $CustomField->Id . "-Value", + Name => $name, Default => $Default, Rows => $Rows, Class => "CF-".$CustomField->id."-Edit", Values => [map {$_->Name} @{$CustomField->Values->ItemsArrayRef}], &> + +<%INIT> +my $name = $Name || $NamePrefix . $CustomField->Id . '-Value'; +my $delete_name = $name; +$delete_name =~ s!-Value$!-DeleteValueIds!; + + <%ARGS> $Object => undef $CustomField => undef @@ -66,4 +74,5 @@ $Values => undef $Multiple => 0 $Rows => undef $MaxValues => undef +$Name => undef