[Rt-commit] r14196 - in rt/branches/3.999-DANGEROUS: lib/RT/Model
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jul 17 01:47:00 EDT 2008
Author: sunnavy
Date: Thu Jul 17 01:46:59 2008
New Revision: 14196
Modified:
rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm
rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm
rt/branches/3.999-DANGEROUS/share/html/Elements/ShowSearch
Log:
name fixes
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Transaction.pm Thu Jul 17 01:46:59 2008
@@ -1305,7 +1305,7 @@
my $freq = shift;
my $include_sent = @_ ? shift : 0;
- my $attr = $self->firstAttribute('DeferredRecipients');
+ my $attr = $self->first_attribute('DeferredRecipients');
return () unless ($attr);
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm Thu Jul 17 01:46:59 2008
@@ -1019,7 +1019,7 @@
my $value = shift;
return ( 0, _("No permission to set preferences") )
- unless $self->current_userCanModify('Preferences');
+ unless $self->current_user_can_modify('Preferences');
my $attr = RT::Model::Attribute->new;
$attr->load_by_name_and_object( object => $self, name => $name );
Modified: rt/branches/3.999-DANGEROUS/share/html/Elements/ShowSearch
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Elements/ShowSearch (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Elements/ShowSearch Thu Jul 17 01:46:59 2008
@@ -123,7 +123,7 @@
if ( $_->{'query'} =~ /__Bookmarks__/ ) {
$_->{'rows'} = 999;
- my $bookmarks = Jifty->web->current_user->user_object->firstAttribute('Bookmarks');
+ my $bookmarks = Jifty->web->current_user->user_object->first_attribute('Bookmarks');
$bookmarks = $bookmarks->content if $bookmarks;
$bookmarks ||= {};
my $query = join(" OR ", map " id = '$_' ", grep $bookmarks->{ $_ }, keys %$bookmarks ) || 'id=0';
More information about the Rt-commit
mailing list