[Rt-commit] rt branch, 3.8-trunk, updated. d4840f287f3982426885f31da43ac313672b3a9c
Kevin Falcone
falcone at bestpractical.com
Fri Jul 31 18:04:12 EDT 2009
The branch, 3.8-trunk has been updated
via d4840f287f3982426885f31da43ac313672b3a9c (commit)
via aa71a090378e465bcba6f07b246c0949f054009e (commit)
from dbc6ad7e5ad5a5d50be54b66d39dae4a63431a5a (commit)
Summary of changes:
share/html/Elements/ShowCustomFields | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit aa71a090378e465bcba6f07b246c0949f054009e
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Jul 31 14:06:16 2009 -0400
Allow ShowCustomFields to be called with a CustomFields object
diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index 9f42dc3..e1aaf6e 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -70,7 +70,6 @@
% }
</table>
<%INIT>
-my $CustomFields = $Object->CustomFields;
$m->callback( CallbackName => 'MassageCustomFields', CustomFields => $CustomFields );
my $print_value = sub {
@@ -111,4 +110,5 @@ my $print_value = sub {
</%INIT>
<%ARGS>
$Object => undef
+$CustomFields => $Object->CustomFields
</%ARGS>
commit d4840f287f3982426885f31da43ac313672b3a9c
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Jul 31 14:07:34 2009 -0400
Allow you to turn off the table wrapping the Custom Field display
diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index e1aaf6e..d9b23ed 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -45,7 +45,9 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
+% if ($Table) {
<table>
+% }
% while ( my $CustomField = $CustomFields->Next ) {
% my $Values = $Object->CustomFieldValues( $CustomField->Id );
% my $count = $Values->Count;
@@ -68,7 +70,9 @@
</td>
</tr>
% }
+% if ($Table) {
</table>
+% }
<%INIT>
$m->callback( CallbackName => 'MassageCustomFields', CustomFields => $CustomFields );
@@ -111,4 +115,5 @@ my $print_value = sub {
<%ARGS>
$Object => undef
$CustomFields => $Object->CustomFields
+$Table => 1
</%ARGS>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list