[freeside-commits] branch FREESIDE_3_BRANCH updated. 091ece4edf3e59b5246d66e2de950e9b234cfaf3

Ivan ivan at 420.am
Thu Dec 4 10:08:14 PST 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  091ece4edf3e59b5246d66e2de950e9b234cfaf3 (commit)
      from  777e0e68f1200ea601fc4eabe0ed4da13628b233 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 091ece4edf3e59b5246d66e2de950e9b234cfaf3
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Dec 4 10:08:13 2014 -0800

    fix invoice sorting by package category, RT#31272

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 2fae464..05972c0 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -2153,9 +2153,9 @@ sub _items_sections {
         } else {
           $section->{'category'} = $sectionname;
           $section->{'description'} = &{ $escape }($sectionname);
-          if ( _pkg_category($_) ) {
-            $section->{'sort_weight'} = _pkg_category($_)->weight;
-            if ( _pkg_category($_)->condense ) {
+          if ( _pkg_category($sectionname) ) {
+            $section->{'sort_weight'} = _pkg_category($sectionname)->weight;
+            if ( _pkg_category($sectionname)->condense ) {
               $section = { %$section, $self->_condense_section($opt{format}) };
             }
           }

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

Summary of changes:
 FS/FS/Template_Mixin.pm |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list