diff options
author | ivan <ivan> | 2008-10-11 00:32:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-10-11 00:32:56 +0000 |
commit | e5162f2d9dfaab3935211e12b860a0484c563196 (patch) | |
tree | d9bab0aef30d88f51a5cf0c73e3525aa2a17f99e | |
parent | c093d1dbd7e925a1252bd393d68e6cffec60a0e5 (diff) |
backport part_pkg::pkg_comment in order to enable suspension notices to an administrator, RT#4083
-rw-r--r-- | FS/FS/part_pkg.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index 6ff1fbb9c..66ac79c4b 100644 --- a/FS/FS/part_pkg.pm +++ b/FS/FS/part_pkg.pm @@ -475,6 +475,22 @@ sub check { ''; } +=item pkg_comment + +Returns an (internal) string representing this package. Currently, +"pkgpart: pkg - comment", is returned. "pkg - comment" may be returned in the +future, omitting pkgpart. + +=cut + +sub pkg_comment { + my $self = shift; + + #$self->pkg. ' - '. $self->comment; + #$self->pkg. ' ('. $self->comment. ')'; + $self->pkgpart. ': '. $self->pkg. ' - '. $self->comment; +} + =item pkg_class Returns the package class, as an FS::pkg_class object, or the empty string |