fix label method and doc work
authorivan <ivan>
Tue, 26 Jan 2010 06:14:35 +0000 (06:14 +0000)
committerivan <ivan>
Tue, 26 Jan 2010 06:14:35 +0000 (06:14 +0000)
FS/FS/svc_pbx.pm

index 49509b5..4ba8e66 100644 (file)
@@ -81,7 +81,7 @@ sub table_info {
     'cancel_weight'  => 90,
     'fields' => {
       'id'    => 'Thirdlane ID',
-      'title' => 'Description',
+      'title' => 'Name',
       'max_extensions' => 'Maximum number of User Extensions',
 #      'field'         => 'Description',
 #      'another_field' => { 
@@ -120,13 +120,13 @@ Class method which returns an SQL fragment to search for the given string.
 
 =item label
 
-Returns a meaningful identifier for this PBX tenant.
+Returns the title field for this PBX tenant.
 
 =cut
 
 sub label {
   my $self = shift;
-  $self->label_field; #or something more complicated if necessary
+  $self->title;
 }
 
 =item insert