[freeside-commits] branch master updated. b429c39e5d748f9410143d51c79717ac95a5ff30

Jonathan Prykop jonathan at 420.am
Thu May 21 16:43:31 PDT 2015


The branch, master has been updated
       via  b429c39e5d748f9410143d51c79717ac95a5ff30 (commit)
      from  37047d680db893694234b8d470a231d84597a25a (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 b429c39e5d748f9410143d51c79717ac95a5ff30
Author: jonathan <jonathan at freeside.biz>
Date:   Thu May 21 23:43:19 2015 +0000

    RT#34289: Flag service fields as mandatory [fieldname bug fix]

diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm
index ca26074..518e847 100644
--- a/FS/FS/part_svc.pm
+++ b/FS/FS/part_svc.pm
@@ -145,9 +145,9 @@ sub insert {
   foreach my $field (fields($svcdb), @fields) {
     next if $field eq 'svcnum';
     my $prefix = $svcdb.'__';
-    if ( defined( $self->getfield($prefix.$_.'_flag'))
-      or defined($self->getfield($prefix.$_.'_required'))
-      or length($self->getfield($prefix.$_.'_label'))
+    if ( defined( $self->getfield($prefix.$field.'_flag'))
+      or defined($self->getfield($prefix.$field.'_required'))
+      or length($self->getfield($prefix.$field.'_label'))
     ) {
       my $part_svc_column = $self->part_svc_column($field);
       my $previous = qsearchs('part_svc_column', {
@@ -284,9 +284,9 @@ sub replace {
     foreach my $field (fields($svcdb), at fields) {
       next if $field eq 'svcnum';
       my $prefix = $svcdb.'__';
-      if ( defined( $new->getfield($prefix.$_.'_flag'))
-        or defined($new->getfield($prefix.$_.'_required'))
-        or length($new->getfield($prefix.$_.'_label'))
+      if ( defined( $new->getfield($prefix.$field.'_flag'))
+        or defined($new->getfield($prefix.$field.'_required'))
+        or length($new->getfield($prefix.$field.'_label'))
       ) {
         my $part_svc_column = $new->part_svc_column($field);
         my $previous = qsearchs('part_svc_column', {

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

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




More information about the freeside-commits mailing list