[Rt-commit] r10672 - rt/branches/3.999-DANGEROUS/lib/RT/Model

ruz at bestpractical.com ruz at bestpractical.com
Sat Feb 2 00:46:35 EST 2008


Author: ruz
Date: Sat Feb  2 00:46:34 2008
New Revision: 10672

Modified:
   rt/branches/3.999-DANGEROUS/lib/RT/Model/ObjectCustomFieldValue.pm

Log:
* Content in ObjectCustomFieldValue model

Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/ObjectCustomFieldValue.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/ObjectCustomFieldValue.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/ObjectCustomFieldValue.pm	Sat Feb  2 00:46:34 2008
@@ -71,7 +71,7 @@
     column Created => type is 'datetime', default is '';
     column custom_field => type is 'int(11)', max_length is 11, default is '0';
     column
-        Content => type is 'varchar(255)',
+        content => type is 'varchar(255)',
         max_length is 255, default is '';
     column
         content_encoding => type is 'varchar(80)',
@@ -110,7 +110,7 @@
     if ( defined $args{'content'} && length( $args{'content'} ) > 255 ) {
         if ( defined $args{'large_content'} && length $args{'large_content'} ) {
             Jifty->log->error(
-                "Content is longer than 255 and large_content specified");
+                "content is longer than 255 and large_content specified");
         } else {
             $args{'large_content'} = $args{'content'};
             $args{'content'}      = '';
@@ -140,9 +140,9 @@
         $self->_value( 'large_content', decode_utf8 => 0 ) );
 }
 
-=head2 LoadByTicketContentAndCustomField { Ticket => TICKET, custom_field => customfield, Content => CONTENT }
+=head2 LoadByTicketContentAndCustomField { Ticket => TICKET, custom_field => customfield, content => CONTENT }
 
-Loads a custom field value by Ticket, Content and which custom_field it's tied to
+Loads a custom field value by Ticket, content and which custom_field it's tied to
 
 =cut
 
@@ -184,7 +184,7 @@
     );
 }
 
-=head2 Content
+=head2 content
 
 Return this custom field's content. If there's no "regular"
 content, try "large_content"
@@ -193,7 +193,7 @@
 
 sub content {
     my $self    = shift;
-    my $content = $self->_value('Content');
+    my $content = $self->_value('content');
     if ( !( defined $content && length $content )
         && $self->content_type eq 'text/plain' )
     {


More information about the Rt-commit mailing list