[freeside-commits] freeside/FS/FS part_svc.pm,1.33,1.34
Ivan,,,
ivan at wavetail.420.am
Wed Oct 28 11:16:59 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv4403
Modified Files:
part_svc.pm
Log Message:
fix removing a flag from a service definition column
Index: part_svc.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_svc.pm,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- part_svc.pm 9 May 2009 00:39:13 -0000 1.33
+++ part_svc.pm 28 Oct 2009 18:16:57 -0000 1.34
@@ -267,6 +267,7 @@
|| $new->getfield($svcdb.'__'.$_.'_label') !~ /^\s*$/ )
} (fields($svcdb), at fields)
) {
+
my $part_svc_column = $new->part_svc_column($field);
my $previous = qsearchs('part_svc_column', {
'svcpart' => $new->svcpart,
@@ -279,12 +280,15 @@
if ( uc($flag) =~ /^([A-Z])$/ || $label !~ /^\s*$/ ) {
if ( uc($flag) =~ /^([A-Z])$/ ) {
+ $part_svc_column->setfield('columnflag', $1);
my $parser = FS::part_svc->svc_table_fields($svcdb)->{$field}->{parse}
|| sub { shift };
- $part_svc_column->setfield('columnflag', $1);
$part_svc_column->setfield('columnvalue',
&$parser($new->getfield($svcdb.'__'.$field))
);
+ } else {
+ $part_svc_column->setfield('columnflag', '');
+ $part_svc_column->setfield('columnvalue', '');
}
$part_svc_column->setfield('columnlabel', $label)
More information about the freeside-commits
mailing list