[freeside-commits] branch FREESIDE_3_BRANCH updated. 8bb9b6715c5efc84bee3a79cf8ead80deca78279

Ivan ivan at 420.am
Thu Aug 21 00:18:47 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  8bb9b6715c5efc84bee3a79cf8ead80deca78279 (commit)
      from  f2b732d166178191781e0fbdcd0d19df73243420 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8bb9b6715c5efc84bee3a79cf8ead80deca78279
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Aug 21 00:18:46 2014 -0700

    allow any text for log context

diff --git a/FS/FS/log_context.pm b/FS/FS/log_context.pm
index db97c9b..403829a 100644
--- a/FS/FS/log_context.pm
+++ b/FS/FS/log_context.pm
@@ -67,8 +67,6 @@ points to.  You can ask the object for a copy with the I<hash> method.
 
 =cut
 
-# the new method can be inherited from FS::Record, if a table method is defined
-
 sub table { 'log_context'; }
 
 =item insert
@@ -76,27 +74,15 @@ sub table { 'log_context'; }
 Adds this record to the database.  If there is an error, returns the error,
 otherwise returns false.
 
-=cut
-
-# the insert method can be inherited from FS::Record
-
 =item delete
 
 Delete this record from the database.
 
-=cut
-
-# the delete method can be inherited from FS::Record
-
 =item replace OLD_RECORD
 
 Replaces the OLD_RECORD with this one in the database.  If there is an error,
 returns the error, otherwise returns false.
 
-=cut
-
-# the replace method can be inherited from FS::Record
-
 =item check
 
 Checks all fields to make sure this is a valid example.  If there is
@@ -105,17 +91,13 @@ and replace methods.
 
 =cut
 
-# the check method should currently be supplied - FS::Record contains some
-# data checking routines
-
 sub check {
   my $self = shift;
 
   my $error = 
     $self->ut_numbern('logcontextnum')
     || $self->ut_number('lognum')
-    #|| $self->ut_enum('context', \@contexts)
-    #|| $self->ut_enum('context', \@contexts)
+    || $self->ut_text('context') #|| $self->ut_enum('context', \@contexts)
   ;
   return $error if $error;
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/log_context.pm |   20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)




More information about the freeside-commits mailing list