[Rt-commit] r10619 - in rt/branches/3.999-DANGEROUS: html/Prefs html/Ticket lib/RT/Model
ruz at bestpractical.com
ruz at bestpractical.com
Wed Jan 30 20:17:10 EST 2008
Author: ruz
Date: Wed Jan 30 20:17:10 2008
New Revision: 10619
Modified:
rt/branches/3.999-DANGEROUS/html/Prefs/Other.html
rt/branches/3.999-DANGEROUS/html/Ticket/Display.html
rt/branches/3.999-DANGEROUS/lib/RT/Model/User.pm
rt/branches/3.999-DANGEROUS/lib/RT/SavedSearch.pm
Log:
* fix all {add|set}_attribute calls
Modified: rt/branches/3.999-DANGEROUS/html/Prefs/Other.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Prefs/Other.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Prefs/Other.html Wed Jan 30 20:17:10 2008
@@ -90,7 +90,7 @@
my $preferences = $user_object->preferences( RT->system );
if ((defined $preferred_key) && $preferred_key ne $user_object->first_attribute('preferred_key')) {
- my ($code, $msg) = $user_object->set_attribute(name => 'preferred_key', Content => $preferred_key);
+ my ($code, $msg) = $user_object->set_attribute(name => 'preferred_key', content => $preferred_key);
push @results, _('Preferred Key: %1', _($msg));
}
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Display.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Display.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Display.html Wed Jan 30 20:17:10 2008
@@ -167,7 +167,7 @@
if ( $ARGS{'MarkAsSeen'} ) {
$ticket_obj->set_attribute(
name => 'User-'. $ticket_obj->current_user->id .'-SeenUpTo',
- Content => $ticket_obj->last_updated,
+ content => $ticket_obj->last_updated,
);
push @Actions, _('Marked all messages as seen');
}
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 Wed Jan 30 20:17:10 2008
@@ -1094,7 +1094,7 @@
if ( $attr->id ) {
return $attr->set_content($value);
} else {
- return $self->add_attribute( name => $name, Content => $value );
+ return $self->add_attribute( name => $name, content => $value );
}
}
@@ -1444,7 +1444,7 @@
my ( $status, $msg ) = $self->set_attribute(
name => 'private_key',
- Content => $key,
+ content => $key,
);
return ( $status, _("Couldn't set private key") )
unless $status;
Modified: rt/branches/3.999-DANGEROUS/lib/RT/SavedSearch.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/SavedSearch.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/SavedSearch.pm Wed Jan 30 20:17:10 2008
@@ -164,7 +164,7 @@
my ( $att_id, $att_msg ) = $object->add_attribute(
'name' => 'SavedSearch',
'description' => $name,
- 'Content' => \%params
+ 'content' => \%params
);
if ($att_id) {
$self->{'Attribute'} = $object->attributes->with_id($att_id);
More information about the Rt-commit
mailing list