[Rt-commit] r14147 - in rt/branches/3.999-DANGEROUS: . lib/RT/Interface share/html/Admin/Global/CustomFields share/html/Dashboards share/html/Dashboards/Elements share/html/Elements share/html/Ticket/Graphs share/html/Ticket/Graphs/Elements
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Jul 16 04:19:56 EDT 2008
Author: sunnavy
Date: Wed Jul 16 04:19:56 2008
New Revision: 14147
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/lib/RT/Interface/Web.pm
rt/branches/3.999-DANGEROUS/share/html/Admin/Global/CustomFields/Queues.html
rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/DashboardsForObject
rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/Tabs
rt/branches/3.999-DANGEROUS/share/html/Dashboards/Modify.html
rt/branches/3.999-DANGEROUS/share/html/Dashboards/Queries.html
rt/branches/3.999-DANGEROUS/share/html/Dashboards/Render.html
rt/branches/3.999-DANGEROUS/share/html/Dashboards/Subscription.html
rt/branches/3.999-DANGEROUS/share/html/Dashboards/index.html
rt/branches/3.999-DANGEROUS/share/html/Elements/Dashboards
rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/EditGraphProperties
rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/ShowGraph
rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/dhandler
rt/branches/3.999-DANGEROUS/share/html/index.html
Log:
r14507 at sunnavys-mb: sunnavy | 2008-07-16 15:16:58 +0800
(Jifty->web->current_user) => ( current_user => Jifty->web->current_user)
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Interface/Web.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Interface/Web.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Interface/Web.pm Wed Jul 16 04:19:56 2008
@@ -331,12 +331,12 @@
my $due;
if ( defined $ARGS{'Due'} and $ARGS{'Due'} =~ /\S/ ) {
- $due = new RT::Date( Jifty->web->current_user );
+ $due = new RT::Date( current_user => Jifty->web->current_user );
$due->set( format => 'unknown', value => $ARGS{'Due'} );
}
my $starts;
if ( defined $ARGS{'Starts'} and $ARGS{'Starts'} =~ /\S/ ) {
- $starts = new RT::Date( Jifty->web->current_user );
+ $starts = new RT::Date( current_user => Jifty->web->current_user );
$starts->set( format => 'unknown', value => $ARGS{'Starts'} );
}
Modified: rt/branches/3.999-DANGEROUS/share/html/Admin/Global/CustomFields/Queues.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Admin/Global/CustomFields/Queues.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Admin/Global/CustomFields/Queues.html Wed Jul 16 04:19:56 2008
@@ -54,5 +54,5 @@
<& /Admin/Elements/EditCustomFields, %ARGS, title => $title, ObjectType => 'RT::Model::Queue', Object=> $object &>
<%INIT>
my $title = loc( 'Edit Custom Fields for all queues');
- my $object = RT::Model::Queue->new(Jifty->web->current_user);
+ my $object = RT::Model::Queue->new( current_user => Jifty->web->current_user );
</%INIT>
Modified: rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/DashboardsForObject
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/DashboardsForObject (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/DashboardsForObject Wed Jul 16 04:19:56 2008
@@ -57,7 +57,7 @@
while (my $attr = $Object->attributes->next) {
if ($attr->name =~ /^Dashboard\b/) {
- my $dashboard = RT::Dashboard->new(Jifty->web->current_user);
+ my $dashboard = RT::Dashboard->new( current_user => Jifty->web->current_user );
my ($ok, $msg) = $dashboard->Load($privacy, $attr->id);
if (!$ok) {
Modified: rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/Tabs
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/Tabs (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Dashboards/Elements/Tabs Wed Jul 16 04:19:56 2008
@@ -99,7 +99,7 @@
$tabs->{"A"} = { title => loc('Select dashboard'),
path => "Dashboards/index.html" };
-my $dashboard = RT::Dashboard->new(Jifty->web->current_user);
+my $dashboard = RT::Dashboard->new( current_user => Jifty->web->current_user );
my @objects = $dashboard->_privacy_objects(Create => 1);
if (@objects) {
Modified: rt/branches/3.999-DANGEROUS/share/html/Dashboards/Modify.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Dashboards/Modify.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Dashboards/Modify.html Wed Jul 16 04:19:56 2008
@@ -88,7 +88,7 @@
use RT::Dashboard;
-my $Dashboard = RT::Dashboard->new(Jifty->web->current_user);
+my $Dashboard = RT::Dashboard->new( current_user => Jifty->web->current_user );
my @privacies = $Dashboard->_privacy_objects(($Create ? 'Create' : 'Modify') => 1);
abort(loc("Permission denied")) if @privacies == 0;
Modified: rt/branches/3.999-DANGEROUS/share/html/Dashboards/Queries.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Dashboards/Queries.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Dashboards/Queries.html Wed Jul 16 04:19:56 2008
@@ -82,7 +82,7 @@
my @results;
use RT::Dashboard;
-my $Dashboard = new RT::Dashboard(Jifty->web->current_user);
+my $Dashboard = new RT::Dashboard( current_user => Jifty->web->current_user );
my ($ok, $msg) = $Dashboard->LoadById($id);
$ok || abort(loc("Couldn't load dashboard [_1]: [_2]", $id, $msg));
my $title = loc("Modify the queries of dashboard [_1]", $Dashboard->name);
@@ -99,10 +99,10 @@
$desc_of{$name} = $desc;
}
-my $sys = RT::System->new(Jifty->web->current_user);
+my $sys = RT::System->new( current_user => Jifty->web->current_user );
my @objs = ($sys);
-push @objs, RT::SavedSearches->new( Jifty->web->current_user )->_privacy_objects
+push @objs, RT::SavedSearches->new( current_user => Jifty->web->current_user )->_privacy_objects
if Jifty->web->current_user->HasRight( Right => 'LoadSavedSearch',
Object => $RT::System );
Modified: rt/branches/3.999-DANGEROUS/share/html/Dashboards/Render.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Dashboards/Render.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Dashboards/Render.html Wed Jul 16 04:19:56 2008
@@ -78,11 +78,11 @@
my $current_subtab = 'Dashboards/Render.html?id=' . $id;
use RT::Dashboard;
-my $DashboardObj = RT::Dashboard->new(Jifty->web->current_user);
+my $DashboardObj = RT::Dashboard->new( current_user => Jifty->web->current_user );
my ($ok, $msg) = $DashboardObj->LoadById($id);
abort(loc("Couldn't load dashboard [_1]: [_2]", $id, $msg)) if !$ok;
-my $SubscriptionObj = RT::Model::Attribute->new(Jifty->web->current_user);
+my $SubscriptionObj = RT::Model::Attribute->new( current_user => Jifty->web->current_user );
my $Loaded = 0;
# try to load the subscription to this id
Modified: rt/branches/3.999-DANGEROUS/share/html/Dashboards/Subscription.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Dashboards/Subscription.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Dashboards/Subscription.html Wed Jul 16 04:19:56 2008
@@ -174,9 +174,9 @@
my $timezone = Jifty->web->current_user->user_object->timezone || RT->config->get('Timezone');
use RT::Dashboard;
-my $DashboardObj = RT::Dashboard->new(Jifty->web->current_user);
+my $DashboardObj = RT::Dashboard->new( current_user => Jifty->web->current_user );
-my $SubscriptionObj = RT::Model::Attribute->new(Jifty->web->current_user);
+my $SubscriptionObj = RT::Model::Attribute->new( current_user => Jifty->web->current_user );
# first let's see if we already have a subscription to this DashboardId
for my $sub (Jifty->web->current_user->user_object->attributes->named('Subscription')) {
Modified: rt/branches/3.999-DANGEROUS/share/html/Dashboards/index.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Dashboards/index.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Dashboards/index.html Wed Jul 16 04:19:56 2008
@@ -73,7 +73,7 @@
my $title = loc("Dashboards");
use RT::Dashboard;
-my @objs = RT::Dashboard->new(Jifty->web->current_user)->_privacy_objects;
+my @objs = RT::Dashboard->new( current_user => Jifty->web->current_user )->_privacy_objects;
my $dashboards = $m->comp("/Dashboards/Elements/DashboardsForObjects", Objects => \@objs);
my @actions;
Modified: rt/branches/3.999-DANGEROUS/share/html/Elements/Dashboards
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Elements/Dashboards (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Elements/Dashboards Wed Jul 16 04:19:56 2008
@@ -58,7 +58,7 @@
<%INIT>
use RT::Dashboard;
-my @objs = RT::Dashboard->new(Jifty->web->current_user)->_privacy_objects(ShowSystem => 1);
+my @objs = RT::Dashboard->new( current_user => Jifty->web->current_user )->_privacy_objects(ShowSystem => 1);
my $dashboard_map = $m->comp("/Dashboards/Elements/DashboardsForObjects", Objects => \@objs);
my @dashboards = (
Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/EditGraphProperties
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/EditGraphProperties (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/EditGraphProperties Wed Jul 16 04:19:56 2008
@@ -76,7 +76,7 @@
% }
<br />
-% my @properties = RT::Graph::Tickets->TicketProperties( Jifty->web->current_user );
+% my @properties = RT::Graph::Tickets->TicketProperties( current_user => Jifty->web->current_user );
Fill boxes with color using:
<select name="FillUsing">
Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/ShowGraph
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/ShowGraph (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/Elements/ShowGraph Wed Jul 16 04:19:56 2008
@@ -55,7 +55,7 @@
<%INIT>
use RT::Util 'safe_run_child';
-my $ticket = RT::Model::Ticket->new( Jifty->web->current_user );
+my $ticket = RT::Model::Ticket->new( current_user => Jifty->web->current_user );
$ticket->Load( $id );
unless ( $ticket->id ) {
Jifty->log->error("Couldn't load ticket $id");
Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/dhandler
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/dhandler (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/Graphs/dhandler Wed Jul 16 04:19:56 2008
@@ -55,7 +55,7 @@
return $m->abort( 404 );
}
-my $ticket = RT::Model::Ticket->new(Jifty->web->current_user );
+my $ticket = RT::Model::Ticket->new( current_user => Jifty->web->current_user );
$ticket->Load( $id );
unless ( $ticket->id ) {
Jifty->log->error("Couldn't load ticket #$id");
Modified: rt/branches/3.999-DANGEROUS/share/html/index.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/index.html (original)
+++ rt/branches/3.999-DANGEROUS/share/html/index.html Wed Jul 16 04:19:56 2008
@@ -87,7 +87,7 @@
my @results;
if ( $ARGS{'quick_create'} ) {
- my $queue_obj = new RT::Model::Queue(Jifty->web->current_user);
+ my $queue_obj = new RT::Model::Queue( current_user => Jifty->web->current_user );
$queue_obj->load($ARGS{queue}) or abort(loc("Queue could not be loaded."));
my $CFs = $queue_obj->ticket_custom_fields();
More information about the Rt-commit
mailing list