diff options
Diffstat (limited to 'FS/FS/part_svc_column.pm')
-rw-r--r-- | FS/FS/part_svc_column.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/part_svc_column.pm b/FS/FS/part_svc_column.pm index d2b8fd9..f5b39c0 100644 --- a/FS/FS/part_svc_column.pm +++ b/FS/FS/part_svc_column.pm @@ -39,6 +39,8 @@ fields are currently supported: =item columnname - column name in part_svc.svcdb table +=item columnlabel - label for the column + =item columnvalue - default or fixed value for the column =item columnflag - null or empty (no default), `D' for default, `F' for fixed (unchangeable), `S' for selectable choice, `M' for manual selection from inventory, or `A' for automatic selection from inventory. For virtual fields, can also be 'X' for excluded. @@ -87,11 +89,12 @@ sub check { $self->ut_numbern('columnnum') || $self->ut_number('svcpart') || $self->ut_alpha('columnname') + || $self->ut_textn('columnlabel') || $self->ut_anything('columnvalue') ; return $error if $error; - $self->columnflag =~ /^([DFSMAX])$/ + $self->columnflag =~ /^([DFSMAX]?)$/ or return "illegal columnflag ". $self->columnflag; $self->columnflag(uc($1)); |