[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.9-74-g13bf95b

Alex Vandiver alexmv at bestpractical.com
Thu Jan 22 12:28:31 EST 2015


The branch, 4.2-trunk has been updated
       via  13bf95b13c36cd91dc588e98d575cab570d0004a (commit)
      from  a4a1b4d2e1a4364b7bd9d4e911c19e223622dd0b (commit)

Summary of changes:
 share/html/m/ticket/show | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 13bf95b13c36cd91dc588e98d575cab570d0004a
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Jan 21 13:40:19 2015 -0500

    Check $CustomFields in case the MassageCustomFields callback was used
    
    Using $Ticket->CustomFields->First means that the Custom Fields box may
    still be displayed, even if the MassageCustomFields callback has made
    $CustomFields, which is used to actually display the list of CFs, empty.

diff --git a/share/html/m/ticket/show b/share/html/m/ticket/show
index 82e8387..5823b33 100644
--- a/share/html/m/ticket/show
+++ b/share/html/m/ticket/show
@@ -248,7 +248,7 @@ my $print_value = sub {
   </div>
     </&>
 
-% if ($Ticket->CustomFields->First) {
+% if ($CustomFields->Count) {
     <&| /Widgets/TitleBox, title => loc('Custom Fields'),
         class => 'ticket-info-cfs',
     &>

-----------------------------------------------------------------------


More information about the rt-commit mailing list