From 919e930aa9279b3c5cd12b593889cd6de79d67bf Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 12 Jun 2015 15:19:00 -0700 Subject: rt 4.0.23 --- rt/share/html/Elements/EditCustomFieldBinary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rt/share/html/Elements/EditCustomFieldBinary') diff --git a/rt/share/html/Elements/EditCustomFieldBinary b/rt/share/html/Elements/EditCustomFieldBinary index 591082790..7a2de4995 100644 --- a/rt/share/html/Elements/EditCustomFieldBinary +++ b/rt/share/html/Elements/EditCustomFieldBinary @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) -- cgit v1.2.1 From 1c538bfabc2cd31f27067505f0c3d1a46cba6ef0 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 9 Jul 2015 22:18:55 -0700 Subject: RT 4.2.11, ticket#13852 --- rt/share/html/Elements/EditCustomFieldBinary | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'rt/share/html/Elements/EditCustomFieldBinary') diff --git a/rt/share/html/Elements/EditCustomFieldBinary b/rt/share/html/Elements/EditCustomFieldBinary index 7a2de4995..fc6ee3f26 100644 --- a/rt/share/html/Elements/EditCustomFieldBinary +++ b/rt/share/html/Elements/EditCustomFieldBinary @@ -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 -- cgit v1.2.1