[freeside-commits] branch FREESIDE_3_BRANCH updated. 1b7f832fbc874c1c0b80d22589752a601ce39c18

Ivan ivan at 420.am
Thu Aug 3 16:27:21 PDT 2017


The branch, FREESIDE_3_BRANCH has been updated
       via  1b7f832fbc874c1c0b80d22589752a601ce39c18 (commit)
      from  bcde944d078b3f25f36a7371ce5a903422c1d523 (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 1b7f832fbc874c1c0b80d22589752a601ce39c18
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 3 16:27:19 2017 -0700

    fix agent display on reports when set in conf setting cust-fields, RT#76948

diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm
index 6e9111e..28d894b 100644
--- a/FS/FS/cust_main_Mixin.pm
+++ b/FS/FS/cust_main_Mixin.pm
@@ -248,6 +248,17 @@ sub cust_statuscolor {
     : '000000';
 }
 
+=item agent_name
+
+=cut
+
+sub agent_name {
+  my $self = shift;
+  $self->cust_linked
+    ? $self->cust_main->agent_name
+    : $self->cust_unlinked_msg;
+}
+
 =item prospect_sql
 
 =item active_sql

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

Summary of changes:
 FS/FS/cust_main_Mixin.pm |   11 +++++++++++
 1 file changed, 11 insertions(+)




More information about the freeside-commits mailing list