projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f498bc8
)
RT#34289: Flag service fields as mandatory [fieldname bug fix]
author
jonathan
<jonathan@freeside.biz>
Thu, 21 May 2015 23:43:19 +0000
(23:43 +0000)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Thu, 21 May 2015 23:45:34 +0000
(18:45 -0500)
FS/FS/part_svc.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_svc.pm
b/FS/FS/part_svc.pm
index
beea3f1
..
8a5fc35
100644
(file)
--- a/
FS/FS/part_svc.pm
+++ b/
FS/FS/part_svc.pm
@@
-146,9
+146,9
@@
sub insert {
foreach my $field (fields($svcdb), @fields) {
next if $field eq 'svcnum';
my $prefix = $svcdb.'__';
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', {
) {
my $part_svc_column = $self->part_svc_column($field);
my $previous = qsearchs('part_svc_column', {
@@
-285,9
+285,9
@@
sub replace {
foreach my $field (fields($svcdb),@fields) {
next if $field eq 'svcnum';
my $prefix = $svcdb.'__';
foreach my $field (fields($svcdb),@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', {
) {
my $part_svc_column = $new->part_svc_column($field);
my $previous = qsearchs('part_svc_column', {