[freeside-commits] branch FREESIDE_2_3_BRANCH updated. a8a70873f47d54c50b4ccb74c56aba9ee8efc208

Ivan ivan at 420.am
Thu Oct 10 09:02:54 PDT 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  a8a70873f47d54c50b4ccb74c56aba9ee8efc208 (commit)
      from  cd413027713c39ff57b4d0fc5b79a91d6e2931df (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 a8a70873f47d54c50b4ccb74c56aba9ee8efc208
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Oct 10 09:02:46 2013 -0700

    backport from 3/master to fix svc_cable viewing, RT#22009

diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html
index fe9f065..466fa2b 100644
--- a/httemplate/view/elements/svc_Common.html
+++ b/httemplate/view/elements/svc_Common.html
@@ -59,18 +59,22 @@ function areyousure(href) {
 
 % foreach my $f ( @$fields ) {
 %
-%   my($field, $type, $value, $hack_strict_refs);
+%   my($field, $type, $value);
 %   if ( ref($f) ) {
 %     $field = $f->{'field'};
-%     $hack_strict_refs = \&{ $f->{'value'} } if $f->{'value'};
-%     $value = $f->{'value'}
-%                ? &$hack_strict_refs($svc_x)
-%                : encode_entities($svc_x->$field);
 %     $type  = $f->{'type'} || 'text';
+%     if ( $f->{'value_callback'} ) {
+%       my $hack_strict_refs = \&{ $f->{'value_callback'} };
+%       $value = &$hack_strict_refs($svc_x);
+%     } else {
+%       $value = exists($f->{'value'})
+%                  ? $f->{'value'}
+%                  : encode_entities($svc_x->$field);
+%     }
 %   } else {
 %     $field = $f;
-%     $value = encode_entities($svc_x->$field);
 %     $type = 'text';
+%     $value = encode_entities($svc_x->$field);
 %   }
 %
 %   my $columndef = $part_svc->part_svc_column($field);

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

Summary of changes:
 httemplate/view/elements/svc_Common.html |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)




More information about the freeside-commits mailing list