X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FEditCustomFieldBinary;h=957f54ec42e812d9d2517933adbc8d1b64cd36ab;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=0a20985565f9677f77c60857eb2fb8cf559586cb;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Elements/EditCustomFieldBinary b/rt/share/html/Elements/EditCustomFieldBinary index 0a2098556..957f54ec4 100644 --- a/rt/share/html/Elements/EditCustomFieldBinary +++ b/rt/share/html/Elements/EditCustomFieldBinary @@ -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) @@ -47,15 +47,26 @@ %# END BPS TAGGED BLOCK }}} % while ( $Values and my $value = $Values->Next ) { %# XXX - let user download the file(s) here? -<% $value->Content %>
+<% $value->Content %>
% } -% if (!$MaxValues || !$Values || $Values->Count < $MaxValues) { - +% if ($MaxValues && $Values && $Values->Count >= $MaxValues ) { +
+<&|/l&>Reached maximum number, so new values will override old ones. +
% } + + +<%INIT> +my $name = $Name || $NamePrefix . $CustomField->Id . '-Upload'; +my $delete_name = $name; +$delete_name =~ s!-Upload$!-DeleteValueIds!; + + <%ARGS> $Object => undef $CustomField => undef $NamePrefix => undef +$Name => undef $Default => undef $Values => undef $MaxValues => undef