[Rt-commit] r10561 - in rt/branches/3.999-DANGEROUS/html: Approvals/Elements Download/CustomFieldValue Elements Elements/RT__Model__Ticket Prefs Search Search/Elements Ticket Ticket/Elements Tools/Reports User User/Groups
ruz at bestpractical.com
ruz at bestpractical.com
Tue Jan 29 17:09:26 EST 2008
Author: ruz
Date: Tue Jan 29 17:09:26 2008
New Revision: 10561
Modified:
rt/branches/3.999-DANGEROUS/html/Approvals/Elements/PendingMyApproval
rt/branches/3.999-DANGEROUS/html/Download/CustomFieldValue/dhandler
rt/branches/3.999-DANGEROUS/html/Elements/EditCustomField
rt/branches/3.999-DANGEROUS/html/Elements/EditCustomFieldFreeform
rt/branches/3.999-DANGEROUS/html/Elements/EditLinks
rt/branches/3.999-DANGEROUS/html/Elements/MessageBox
rt/branches/3.999-DANGEROUS/html/Elements/RT__Model__Ticket/ColumnMap
rt/branches/3.999-DANGEROUS/html/Elements/ShowLink
rt/branches/3.999-DANGEROUS/html/Elements/ShowMemberships
rt/branches/3.999-DANGEROUS/html/Elements/ValidateCustomFields
rt/branches/3.999-DANGEROUS/html/Prefs/Quicksearch.html
rt/branches/3.999-DANGEROUS/html/Search/Bulk.html
rt/branches/3.999-DANGEROUS/html/Search/Chart
rt/branches/3.999-DANGEROUS/html/Search/Elements/SelectSearchesForObjects
rt/branches/3.999-DANGEROUS/html/Search/Results.tsv
rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html
rt/branches/3.999-DANGEROUS/html/SelfService/Display.html
rt/branches/3.999-DANGEROUS/html/SelfService/Prefs.html
rt/branches/3.999-DANGEROUS/html/Ticket/Create.html
rt/branches/3.999-DANGEROUS/html/Ticket/Display.html
rt/branches/3.999-DANGEROUS/html/Ticket/Elements/AddWatchers
rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditCustomFields
rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditWatchers
rt/branches/3.999-DANGEROUS/html/Ticket/Elements/PreviewScrips
rt/branches/3.999-DANGEROUS/html/Ticket/Elements/Reminders
rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowDates
rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowUserEntry
rt/branches/3.999-DANGEROUS/html/Ticket/GnuPG.html
rt/branches/3.999-DANGEROUS/html/Ticket/ModifyAll.html
rt/branches/3.999-DANGEROUS/html/Ticket/Update.html
rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html
rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html
rt/branches/3.999-DANGEROUS/html/User/Groups/Members.html
rt/branches/3.999-DANGEROUS/html/User/Groups/Modify.html
rt/branches/3.999-DANGEROUS/html/User/Prefs.html
Log:
* more in html
Modified: rt/branches/3.999-DANGEROUS/html/Approvals/Elements/PendingMyApproval
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Approvals/Elements/PendingMyApproval (original)
+++ rt/branches/3.999-DANGEROUS/html/Approvals/Elements/PendingMyApproval Tue Jan 29 17:09:26 2008
@@ -67,9 +67,9 @@
<input type="checkbox" class="checkbox" value="1" name="ShowRejected" <% defined($ARGS{'ShowRejected'}) && $ARGS{'ShowRejected'} && "checked"%> /> <&|/l&>Show denied requests</&><br />
<input type="checkbox" class="checkbox" value="1" name="ShowDependent" <% defined($ARGS{'ShowDependent'}) && $ARGS{'ShowDependent'} && "checked"%> /> <&|/l&>Show requests awaiting other approvals</&><br />
-<&|/l,"<input size='15' value='".($Created_before->unix > 0 &&$Created_before->ISO)."' name='CreatedBefore' id='CreatedBefore' />"&>Only show approvals for requests Created before %1</&><br />
+<&|/l,"<input size='15' value='".($Created_before->unix > 0 &&$Created_before->iso)."' name='CreatedBefore' id='CreatedBefore' />"&>Only show approvals for requests Created before %1</&><br />
-<&|/l, "<input size='15' value='".( $Created_after->unix >0 && $Created_after->ISO)."' name='CreatedAfter' id='CreatedAfter' />"&>Only show approvals for requests Created after %1</&>
+<&|/l, "<input size='15' value='".( $Created_after->unix >0 && $Created_after->iso)."' name='CreatedAfter' id='CreatedAfter' />"&>Only show approvals for requests Created after %1</&>
</&>
<%init>
Modified: rt/branches/3.999-DANGEROUS/html/Download/CustomFieldValue/dhandler
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Download/CustomFieldValue/dhandler (original)
+++ rt/branches/3.999-DANGEROUS/html/Download/CustomFieldValue/dhandler Tue Jan 29 17:09:26 2008
@@ -69,7 +69,7 @@
$r->content_type( $content_type );
$m->clear_buffer();
-$m->out($OCFV->LargeContent);
+$m->out($OCFV->large_content);
$m->abort;
</%perl>
<%attr>
Modified: rt/branches/3.999-DANGEROUS/html/Elements/EditCustomField
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/EditCustomField (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/EditCustomField Tue Jan 29 17:09:26 2008
@@ -65,7 +65,7 @@
|| $TOP{ $namePrefix .$CustomField->id . '-Value' };
}
-my $MaxValues = $CustomField->MaxValues;
+my $MaxValues = $CustomField->max_values;
if ($MaxValues == 1 && $values) {
# what exactly is this doing? Without the "unless" it breaks RTFM
# transaction extraction into articles.
Modified: rt/branches/3.999-DANGEROUS/html/Elements/EditCustomFieldFreeform
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/EditCustomFieldFreeform (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/EditCustomFieldFreeform Tue Jan 29 17:09:26 2008
@@ -53,7 +53,7 @@
% }
<%INIT>
if ( $Multiple and $values ) {
- $Default = join "\n", map $_->content, @{ $values->ItemsArrayRef };
+ $Default = join "\n", map $_->content, @{ $values->items_array_ref };
}
unless ( $Multiple ) {
$Default =~ s/\s*\n+\s*/ /g if $Default;
Modified: rt/branches/3.999-DANGEROUS/html/Elements/EditLinks
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/EditLinks (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/EditLinks Tue Jan 29 17:09:26 2008
@@ -59,7 +59,7 @@
<td class="labeltop"><&|/l&>Depends on</&>:</td>
<td class="value">
% while (my $link = $Object->depends_on->next) {
- <input type="checkbox" class="checkbox" name="delete_link--<%$link->type%>-<%$link->Target%>" value="1" />
+ <input type="checkbox" class="checkbox" name="delete_link--<%$link->type%>-<%$link->target%>" value="1" />
<& ShowLink, URI => $link->target_uri &><br />
% }
</td>
@@ -68,7 +68,7 @@
<td class="labeltop"><&|/l&>Depended on by</&>:</td>
<td class="value">
% while (my $link = $Object->depended_on_by->next) {
- <input type="checkbox" class="checkbox" name="delete_link-<%$link->Base%>-<%$link->type%>-" value="1" />
+ <input type="checkbox" class="checkbox" name="delete_link-<%$link->base%>-<%$link->type%>-" value="1" />
<& ShowLink, URI => $link->base_uri &><br />
% }
</td>
@@ -77,7 +77,7 @@
<td class="labeltop"><&|/l&>Parents</&>:</td>
<td class="value">
% while (my $link = $Object->member_of->next) {
- <input type="checkbox" class="checkbox" name="delete_link--<%$link->type%>-<%$link->Target%>" value="1" />
+ <input type="checkbox" class="checkbox" name="delete_link--<%$link->type%>-<%$link->target%>" value="1" />
<& ShowLink, URI => $link->target_uri &><br />
% }
</td>
@@ -86,7 +86,7 @@
<td class="labeltop"><&|/l&>Children</&>:</td>
<td class="value">
% while (my $link = $Object->members->next) {
- <input type="checkbox" class="checkbox" name="delete_link-<%$link->Base%>-<%$link->type%>-" value="1" />
+ <input type="checkbox" class="checkbox" name="delete_link-<%$link->base%>-<%$link->type%>-" value="1" />
<& ShowLink, URI => $link->base_uri &><br />
% }
</td>
@@ -95,7 +95,7 @@
<td class="labeltop"><&|/l&>Refers to</&>:</td>
<td class="value">
% while (my $link = $Object->refers_to->next) {
- <input type="checkbox" class="checkbox" name="delete_link--<%$link->type%>-<%$link->Target%>" value="1" />
+ <input type="checkbox" class="checkbox" name="delete_link--<%$link->type%>-<%$link->target%>" value="1" />
<& ShowLink, URI => $link->target_uri &><br />
%}
</td>
@@ -106,7 +106,7 @@
% while (my $link = $Object->referred_to_by->next) {
% # Skip reminders
% next if (UNIVERSAL::isa($link->base_obj, 'RT::Model::Ticket') && $link->base_obj->type eq 'reminder');
- <input type="checkbox" class="checkbox" name="delete_link-<%$link->Base%>-<%$link->type%>-" value="1" />
+ <input type="checkbox" class="checkbox" name="delete_link-<%$link->base%>-<%$link->type%>-" value="1" />
<& ShowLink, URI => $link->base_uri &><br />
% }
</td>
Modified: rt/branches/3.999-DANGEROUS/html/Elements/MessageBox
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/MessageBox (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/MessageBox Tue Jan 29 17:09:26 2008
@@ -59,7 +59,7 @@
}
my $signature = '';
-if ( $IncludeSignature and my $text = Jifty->web->current_user->user_object->Signature ) {
+if ( $IncludeSignature and my $text = Jifty->web->current_user->user_object->signature ) {
$signature = "-- \n". $text;
}
Modified: rt/branches/3.999-DANGEROUS/html/Elements/RT__Model__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/RT__Model__Ticket/ColumnMap (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/RT__Model__Ticket/ColumnMap Tue Jan 29 17:09:26 2008
@@ -70,7 +70,7 @@
\'">',
( $_->$mode_uri->is_local ? $_->$local_type : $_->$mode ),
\'</a><br />',
- } @{ $_[0]->Links($other_mode,$type)->items_array_ref }
+ } @{ $_[0]->links($other_mode,$type)->items_array_ref }
}
};
@@ -131,7 +131,7 @@
},
EffectiveId => {
attribute => 'EffectiveId',
- value => sub { return $_[0]->EffectiveId }
+ value => sub { return $_[0]->effective_id }
},
type => {
attribute => 'type',
Modified: rt/branches/3.999-DANGEROUS/html/Elements/ShowLink
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/ShowLink (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/ShowLink Tue Jan 29 17:09:26 2008
@@ -45,18 +45,18 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<a href="<%$URI->resolver->HREF%>">
-% if ($URI->IsLocal) {
+<a href="<%$URI->resolver->href%>">
+% if ($URI->is_local) {
% my $member = $URI->object;
% if (UNIVERSAL::isa($member, "RT::Model::Ticket")) {
<%$member->id%>: (<%$member->owner_obj->name%>) <%$member->subject%> [<% _($member->status) %>]
% } elsif ( UNIVERSAL::can($member, 'name')) {
-<%$URI->resolver->AsString%>: <%$member->name%>
+<%$URI->resolver->as_string%>: <%$member->name%>
% } else {
-<%$URI->resolver->AsString%>
+<%$URI->resolver->as_string%>
% }
% } else {
-<%$URI->resolver->AsString%>
+<%$URI->resolver->as_string%>
% }
</a>
<%ARGS>
Modified: rt/branches/3.999-DANGEROUS/html/Elements/ShowMemberships
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/ShowMemberships (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/ShowMemberships Tue Jan 29 17:09:26 2008
@@ -48,7 +48,7 @@
<ul>
% while ( my $GroupMember = $GroupMembers->next ) {
% my $Group = RT::Model::Group->new();
-% $Group->load($GroupMember->GroupId) or next;
+% $Group->load($GroupMember->group_id) or next;
% if ($Group->domain eq 'UserDefined') {
<li><a href="<%RT->config->get('WebPath')%>/Admin/Groups/Modify.html?id=<% $Group->id %>"><% $Group->name %></a></li>
% } elsif ($Group->domain eq 'SystemInternal') {
Modified: rt/branches/3.999-DANGEROUS/html/Elements/ValidateCustomFields
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/ValidateCustomFields (original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/ValidateCustomFields Tue Jan 29 17:09:26 2008
@@ -84,7 +84,7 @@
foreach my $value( @values ) {
next if $CF->match_pattern($value);
- my $msg = _("Input must match %1", $CF->FriendlyPattern);
+ my $msg = _("Input must match %1", $CF->friendly_pattern);
$m->notes( ('InvalidField-' . $CF->id) => $msg );
push @res, $msg;
$valid = 0;
Modified: rt/branches/3.999-DANGEROUS/html/Prefs/Quicksearch.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Prefs/Quicksearch.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Prefs/Quicksearch.html Tue Jan 29 17:09:26 2008
@@ -60,7 +60,7 @@
% unless ($unwanted->{$queue->name}) {
checked
% }
-/><%$queue->name%>: <%$queue->Description%></li>
+/><%$queue->name%>: <%$queue->description%></li>
% }
</ul>
<& /Elements/Submit, Caption => _("Save Changes"), Label => loc('Save'), name => 'Save'&>
Modified: rt/branches/3.999-DANGEROUS/html/Search/Bulk.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Search/Bulk.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Search/Bulk.html Tue Jan 29 17:09:26 2008
@@ -163,9 +163,9 @@
% while (my $cf = $cfs->next()) {
<tr>
<td class="label"><%$cf->name%><br />
-<em>(<%$cf->FriendlyType%>)</em></td>
+<em>(<%$cf->friendly_type%>)</em></td>
% my $rows = 5;
-% my @add = (namePrefix => 'Bulk-Add-CustomField-', CustomField => $cf, Rows => $rows, Multiple => ($cf->MaxValues ==1 ? 0 : 1) , Cols => 25);
+% my @add = (namePrefix => 'Bulk-Add-CustomField-', CustomField => $cf, Rows => $rows, Multiple => ($cf->max_values ==1 ? 0 : 1) , Cols => 25);
% my @del = (namePrefix => 'Bulk-Delete-CustomField-', CustomField => $cf, Rows => $rows, Multiple => 1, Cols => 25);
% if ($cf->type eq 'Select') {
<td><& /Elements/EditCustomFieldSelect, @add &></td>
@@ -239,7 +239,7 @@
my $fields = {};
my $seen_queues = {};
while ( my $ticket = $Tickets->next ) {
- next if $seen_queues->{ $ticket->Queue }++;
+ next if $seen_queues->{ $ticket->queue }++;
my $custom_fields = $ticket->queue_obj->ticket_custom_fields;
while ( my $field = $custom_fields->next ) {
Modified: rt/branches/3.999-DANGEROUS/html/Search/Chart
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Search/Chart (original)
+++ rt/branches/3.999-DANGEROUS/html/Search/Chart Tue Jan 29 17:09:26 2008
@@ -69,9 +69,9 @@
use RT::Report::Tickets;
my $tix = RT::Report::Tickets->new();
$tix->from_sql( $Query );
-my $count_name = $tix->Column( FUNCTION => 'COUNT', column => 'id' );
+my $count_name = $tix->column( FUNCTION => 'COUNT', column => 'id' );
$tix->group_by( column => $PrimaryGroupBy );
-my $value_name = $tix->Column( column => $PrimaryGroupBy );
+my $value_name = $tix->column( column => $PrimaryGroupBy );
my $chart = $chart_class->new( 600 => 400 );
@@ -92,8 +92,8 @@
# the chart will just be a non-loading image.
if ($tix->count == 0) {
my $plot = GD::Image->new(600 => 400);
- $plot->colorAllocate(255, 255, 255); # background
- my $black = $plot->colorAllocate(0, 0, 0);
+ $plot->color_allocate(255, 255, 255); # background
+ my $black = $plot->color_allocate(0, 0, 0);
require GD::Text::Wrap;
my $error = GD::Text::Wrap->new($plot,
Modified: rt/branches/3.999-DANGEROUS/html/Search/Elements/SelectSearchesForObjects
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Search/Elements/SelectSearchesForObjects (original)
+++ rt/branches/3.999-DANGEROUS/html/Search/Elements/SelectSearchesForObjects Tue Jan 29 17:09:26 2008
@@ -63,7 +63,7 @@
% # Skip it if it is not of search type we want.
% next if ($search->sub_value('SearchType')
% && $search->sub_value('SearchType') ne $SearchType);
-<option value="<%ref($object)%>-<%$object->id%>-SavedSearch-<%$search->id%>"> -<%$search->Description||_('Unnamed search')%></option>
+<option value="<%ref($object)%>-<%$object->id%>-SavedSearch-<%$search->id%>"> -<%$search->description||_('Unnamed search')%></option>
% }
% }
</select>
Modified: rt/branches/3.999-DANGEROUS/html/Search/Results.tsv
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Search/Results.tsv (original)
+++ rt/branches/3.999-DANGEROUS/html/Search/Results.tsv Tue Jan 29 17:09:26 2008
@@ -71,13 +71,13 @@
my @attrs = qw( id queue_obj->name subject Status time_estimated time_worked time_left Priority final_priority OwnerObj->name
Requestors->member_emails_as_string Cc->member_emails_as_string AdminCc->member_emails_as_string
- due_obj->iso ToldObj->iso created_obj->iso ResolvedObj->iso LastUpdatedObj->ISO);
+ due_obj->iso ToldObj->iso created_obj->iso ResolvedObj->iso LastUpdatedObj->iso);
$r->content_type('application/vnd.ms-excel');
while ( my $Ticket = $Tickets->next()) {
my $row;
foreach my $attr (@attrs) {
- if ($attr =~ /(.*)->ISO$/ and $Ticket->$1->unix <= 0) {
+ if ($attr =~ /(.*)->iso$/ and $Ticket->$1->unix <= 0) {
$row->{$attr} = "";
} else {
my $method = '$Ticket->'.$attr.'()';
Modified: rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html (original)
+++ rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html Tue Jan 29 17:09:26 2008
@@ -54,7 +54,7 @@
% next unless $queue->current_user_has_right('create_ticket');
<dt><a href="<%RT->config->get('WebPath')%>/SelfService/Create.html?Queue=<%$queue->id%>"><%$queue->name%></a></dt>
-<dd><%$queue->Description%></dd>
+<dd><%$queue->description%></dd>
% }
</dl>
<%init>
Modified: rt/branches/3.999-DANGEROUS/html/SelfService/Display.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/SelfService/Display.html (original)
+++ rt/branches/3.999-DANGEROUS/html/SelfService/Display.html Tue Jan 29 17:09:26 2008
@@ -180,7 +180,7 @@
|| ( defined $ARGS{'UpdateContent'}
&& $ARGS{'UpdateContent'} ne ''
&& $ARGS{'UpdateContent'} ne "-- \n"
- . Jifty->web->current_user->user_object->Signature )
+ . Jifty->web->current_user->user_object->signature )
)
{
$ARGS{UpdateAttachments} = $session{'Attachments'};
Modified: rt/branches/3.999-DANGEROUS/html/SelfService/Prefs.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/SelfService/Prefs.html (original)
+++ rt/branches/3.999-DANGEROUS/html/SelfService/Prefs.html Tue Jan 29 17:09:26 2008
@@ -75,8 +75,8 @@
}
if ($Signature) {
$Signature =~ s/(\r\n|\r)/\n/g;
- if ($Signature ne Jifty->web->current_user->user_object->Signature) {
- my ($val, $msg)=Jifty->web->current_user->user_object->set_Signature($Signature);
+ if ($Signature ne Jifty->web->current_user->user_object->signature) {
+ my ($val, $msg)=Jifty->web->current_user->user_object->set_signature($Signature);
push (@results, "Signature: ".$msg);
}
}
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Create.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Create.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Create.html Tue Jan 29 17:09:26 2008
@@ -246,12 +246,12 @@
my $cloneticket_obj;
if ( $cloneTicket ) {
$cloneticket_obj = RT::Model::Ticket->new();
- $cloneticket_obj->Load($cloneTicket) or abort(_("Ticket could not be loaded"));
+ $cloneticket_obj->load($cloneTicket) or abort(_("Ticket could not be loaded"));
my $clone = {
Requestors => join( ',', $cloneticket_obj->requestor_addresses ),
- Cc => join( ',', $cloneticket_obj->CcAddresses),
- AdminCc => join( ',', $cloneticket_obj->AdminCcAddresses),
+ Cc => join( ',', $cloneticket_obj->cc_addresses),
+ AdminCc => join( ',', $cloneticket_obj->admin_cc_addresses),
initial_priority => $cloneticket_obj->priority,
};
@@ -262,37 +262,37 @@
my $members = $cloneticket_obj->members;
my ( @members, @members_of, @refers, @refers_by, @depends, @depends_by );
while ( my $member = $members->next ) {
- push @members, $member->LocalBase;
+ push @members, $member->local_base;
}
$clone->{'MemberOf-new'} = join ' ', @members;
my $members_of = $cloneticket_obj->member_of;
while ( my $member_of = $members_of->next ) {
- push @members_of, $member_of->LocalTarget;
+ push @members_of, $member_of->local_target;
}
$clone->{'new-MemberOf'} = join ' ', @members_of;
my $refers = $cloneticket_obj->refers_to;
while ( my $refer = $refers->next ) {
- push @refers, $refer->LocalTarget;
+ push @refers, $refer->local_target;
}
$clone->{'new-RefersTo'} = join ' ', @refers;
my $refers_by = $cloneticket_obj->referred_to_by;
while ( my $refer_by = $refers_by->next ) {
- push @refers_by, $refer_by->LocalBase;
+ push @refers_by, $refer_by->local_base;
}
$clone->{'RefersTo-new'} = join ' ', @refers_by;
my $depends = $cloneticket_obj->depends_on;
while ( my $depend = $depends->next ) {
- push @depends, $depend->LocalTarget;
+ push @depends, $depend->local_target;
}
$clone->{'new-DependsOn'} = join ' ', @depends;
my $depends_by = $cloneticket_obj->depended_on_by;
while ( my $depend_by = $depends_by->next ) {
- push @depends_by, $depend_by->LocalBase;
+ push @depends_by, $depend_by->local_base;
}
$clone->{'DependsOn-new'} = join ' ', @depends_by;
@@ -332,10 +332,10 @@
# if no due date has been set explicitly, then use the
# queue's default if it exists
-if ($queue_obj->DefaultDueIn && !$ARGS{'Due'}) {
+if ($queue_obj->default_due_in && !$ARGS{'Due'}) {
my $default_due = RT::Date->new();
$default_due->set_to_now();
- $default_due->add_days($queue_obj->DefaultDueIn);
+ $default_due->add_days($queue_obj->default_due_in);
$ARGS{'Due'} = $default_due->iso();
}
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 Tue Jan 29 17:09:26 2008
@@ -141,7 +141,7 @@
Actions => \@Actions);
$ARGS{'UpdateContent'} =~ s/\r\n/\n/g if defined $ARGS{'UpdateContent'};
- my $signature = Jifty->web->current_user->user_object->Signature || '';
+ my $signature = Jifty->web->current_user->user_object->signature || '';
if ( $ARGS{'UpdateTimeWorked'} || (
defined $ARGS{'UpdateContent'}
&& $ARGS{'UpdateContent'} ne ''
@@ -167,7 +167,7 @@
if ( $ARGS{'MarkAsSeen'} ) {
$ticket_obj->set_attribute(
name => 'User-'. $ticket_obj->current_user->id .'-SeenUpTo',
- Content => $ticket_obj->LastUpdated,
+ Content => $ticket_obj->last_updated,
);
push @Actions, _('Marked all messages as seen');
}
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Elements/AddWatchers
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Elements/AddWatchers (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Elements/AddWatchers Tue Jan 29 17:09:26 2008
@@ -66,7 +66,7 @@
<&|/l&>Group</&>
</td></tr>
% while (my $g = $Groups->next ) {
-<tr><td><&/Elements/SelectWatcherType, name => "Ticket-AddWatcher-Principal-".$g->principal_id, Scope => 'queue' &></td><td><%$g->name%> (<%$g->Description%>)</td></tr>
+<tr><td><&/Elements/SelectWatcherType, name => "Ticket-AddWatcher-Principal-".$g->principal_id, Scope => 'queue' &></td><td><%$g->name%> (<%$g->description%>)</td></tr>
% }
% }
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditCustomFields
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditCustomFields (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditCustomFields Tue Jan 29 17:09:26 2008
@@ -58,7 +58,7 @@
<tr id="CF-<%$CustomField->id%>-EditRow">
<td class="labeltop">
<b><%$CustomField->name%></b><br />
- <i><%$CustomField->FriendlyType%></i>
+ <i><%$CustomField->friendly_type%></i>
</td>
<td class="entry">
<& /Elements/EditCustomField,
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditWatchers
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditWatchers (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Elements/EditWatchers Tue Jan 29 17:09:26 2008
@@ -55,16 +55,16 @@
% while ( my $watcher = $Members->next ) {
% my $member = $watcher->member_obj->object;
<li>
-<input type="checkbox" class="checkbox" name="Ticket-DeleteWatcher-Type-<% $Watchers->type %>-Principal-<% $watcher->MemberId %>" value="1" unchecked />
+<input type="checkbox" class="checkbox" name="Ticket-DeleteWatcher-Type-<% $Watchers->type %>-Principal-<% $watcher->member_id %>" value="1" unchecked />
% if ( $member->isa( 'RT::Model::User' ) ) {
-<a href="<% RT->config->get('WebPath') %>/Admin/Users/Modify.html?id=<% $watcher->MemberId %>">
+<a href="<% RT->config->get('WebPath') %>/Admin/Users/Modify.html?id=<% $watcher->member_id %>">
<& /Elements/ShowUser, User => $member &></a>
-% if ($ticket_obj and grep { $_->content eq $member->email } $ticket_obj->SquelchMailTo) {
+% if ($ticket_obj and grep { $_->content eq $member->email } $ticket_obj->squelch_mail_to) {
<b><&|/l&>(Will not be sent email)</&></b>
% }
% } else {
-<a href="<% RT->config->get('WebPath') %>/Admin/Groups/Modify.html?id=<% $watcher->MemberId %>">
+<a href="<% RT->config->get('WebPath') %>/Admin/Groups/Modify.html?id=<% $watcher->member_id %>">
<% $member->name %></a>
% }
</li>
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Elements/PreviewScrips
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Elements/PreviewScrips (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Elements/PreviewScrips Tue Jan 29 17:09:26 2008
@@ -140,7 +140,7 @@
}
-return (Object => $Object, emails => [$ticket_obj->SquelchMailTo]);
+return (Object => $Object, emails => [$ticket_obj->squelch_mail_to]);
</%INIT>
</%METHOD>
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Elements/Reminders
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Elements/Reminders (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Elements/Reminders Tue Jan 29 17:09:26 2008
@@ -72,12 +72,12 @@
$reminder->set_subject( $request_args->{ 'Reminder-subject-' . $reminder->id } ) ;
}
- if ( exists( $request_args->{ 'Reminder-Owner-' . $reminder->id } ) && ( $reminder->Owner != $request_args->{ 'Reminder-Owner-' . $reminder->id } )) {
+ if ( exists( $request_args->{ 'Reminder-Owner-' . $reminder->id } ) && ( $reminder->owner != $request_args->{ 'Reminder-Owner-' . $reminder->id } )) {
$reminder->set_owner( $request_args->{ 'Reminder-Owner-' . $reminder->id } , "Force" ) ;
}
if ( exists( $request_args->{ 'Reminder-Due-' . $reminder->id } ) && ( $reminder->due_obj->date ne $request_args->{ 'Reminder-Due-' . $reminder->id } )) {
- $reminder->set_Due( $request_args->{ 'Reminder-Due-' . $reminder->id } ) ;
+ $reminder->set_due( $request_args->{ 'Reminder-Due-' . $reminder->id } ) ;
}
}
}
@@ -148,7 +148,7 @@
<% $Reminder->status eq 'resolved' ? 'CHECKED' : '' %>
/>
<input type="text" size="15" name="Reminder-subject-<% $Reminder->id %>" value="<%$Reminder->subject%>" /> •
- <& /Elements/SelectOwner, name => 'Reminder-Owner-'.$Reminder->id, Queue => $Ticket->queue_obj, Default => $Reminder->Owner, DefaultValue => 0 &>
+ <& /Elements/SelectOwner, name => 'Reminder-Owner-'.$Reminder->id, Queue => $Ticket->queue_obj, Default => $Reminder->owner, DefaultValue => 0 &>
<& /Elements/SelectDate, name => 'Reminder-Due-'.$Reminder->id, Default => $Reminder->due_obj->date &>
(<%$Reminder->due_obj->unix>0 ? $Reminder->due_obj->age_as_string : '' %>)<br />
</%method>
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowDates
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowDates (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowDates Tue Jan 29 17:09:26 2008
@@ -72,7 +72,7 @@
</tr>
<tr>
<td class="label date updated"><&|/l&>Updated</&>:</td>
-% my $UpdatedString = $Ticket->LastUpdated ? _("%1 by %2", $Ticket->last_updated_as_string, $Ticket->last_updated_by_obj->name) : loc("Never");
+% my $UpdatedString = $Ticket->last_updated ? _("%1 by %2", $Ticket->last_updated_as_string, $Ticket->last_updated_by_obj->name) : loc("Never");
% if ($UpdatedLink) {
<td class="value date updated"><A HREF="#lasttrans"><% $UpdatedString | h %></a></td>
% } else {
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowUserEntry
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowUserEntry (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Elements/ShowUserEntry Tue Jan 29 17:09:26 2008
@@ -46,7 +46,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<& /Elements/ShowUser, %ARGS &>
-% if ($Ticket and grep { $_->content eq $User->email } $Ticket->SquelchMailTo) {
+% if ($Ticket and grep { $_->content eq $User->email } $Ticket->squelch_mail_to) {
<b><&|/l&>(Will not be sent email)</&></b>
% }
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/GnuPG.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/GnuPG.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/GnuPG.html Tue Jan 29 17:09:26 2008
@@ -53,5 +53,5 @@
$encrypted = !$encrypted if $done;
}
-my $title = _("Encrypt/Decrypt transaction #%1 of ticket #%2", $id, $txn->Ticket);
+my $title = _("Encrypt/Decrypt transaction #%1 of ticket #%2", $id, $txn->ticket);
</%INIT>
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/ModifyAll.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/ModifyAll.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/ModifyAll.html Tue Jan 29 17:09:26 2008
@@ -103,7 +103,7 @@
<td class="label"><&|/l&>subject</&>:</td>
<td class="entry"><input name="Updatesubject" size="60" value="<%$Ticket->subject%>" /></td>
</tr>
-% if (my $TxnCFs = $Ticket->TransactionCustomFields) {
+% if (my $TxnCFs = $Ticket->transaction_custom_fields) {
% while (my $CF = $TxnCFs->next()) {
<tr>
<td class="label"><% $CF->name %>:</td>
Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Update.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Update.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Update.html Tue Jan 29 17:09:26 2008
@@ -98,7 +98,7 @@
<& /Ticket/Elements/UpdateCc, %ARGS, ticket_obj => $ticket_obj &>
-% if (my $TxnCFs = $ticket_obj->TransactionCustomFields) {
+% if (my $TxnCFs = $ticket_obj->transaction_custom_fields) {
% while (my $CF = $TxnCFs->next()) {
<tr>
<td align="right"><% $CF->name %>:</td>
Modified: rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html Tue Jan 29 17:09:26 2008
@@ -76,8 +76,8 @@
% if ($Queue|| $CreatedBefore ||$CreatedAfter) {
% # if we have a queue, do the search
% if ($Queue) { $query .= " AND Queue = '$Queue'"}
-% if ($CreatedBefore) { $query .= " AND Created < '".$before->ISO."'"; }
-% if ($CreatedAfter) { $query .= " AND Created > '".$after->ISO."'"}
+% if ($CreatedBefore) { $query .= " AND Created < '".$before->iso."'"; }
+% if ($CreatedAfter) { $query .= " AND Created > '".$after->iso."'"}
% my $groupby = 'Status';
<& /Search/Elements/Chart, Query => $query, PrimaryGroupBy => $groupby &>
% }
Modified: rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html (original)
+++ rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html Tue Jan 29 17:09:26 2008
@@ -77,8 +77,8 @@
% # if we have a queue, do the search
% $query = "Status = 'resolved'";
% if ($Queue) { $query .= " AND Queue = '$Queue'"}
-% if ($ResolvedBefore) { $query .= " AND Resolved < '".$before->ISO."'"; }
-% if ($ResolvedAfter) { $query .= " AND Resolved > '".$after->ISO."'"}
+% if ($ResolvedBefore) { $query .= " AND Resolved < '".$before->iso."'"; }
+% if ($ResolvedAfter) { $query .= " AND Resolved > '".$after->iso."'"}
% my $groupby = 'Owner';
<& /Search/Elements/Chart, Query => $query, PrimaryGroupBy => $groupby &>
% }
Modified: rt/branches/3.999-DANGEROUS/html/User/Groups/Members.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/User/Groups/Members.html (original)
+++ rt/branches/3.999-DANGEROUS/html/User/Groups/Members.html Tue Jan 29 17:09:26 2008
@@ -83,7 +83,7 @@
% $UserMembers->limit_to_users();
<ul>
% while (my $member = $UserMembers->next()) {
-<li><input type="checkbox" class="checkbox" name="delete_member-<%$member->MemberId%>" value="1" />
+<li><input type="checkbox" class="checkbox" name="delete_member-<%$member->member_id%>" value="1" />
<& /Elements/ShowUser, User => $member->member_obj->object &>
% }
</ul>
@@ -92,7 +92,7 @@
% my $GroupMembers = $Group->members_obj;
% $GroupMembers->limit_to_groups();
% while (my $member = $GroupMembers->next()) {
-<li><input type="checkbox" class="checkbox" name="delete_member-<%$member->MemberId%>" value="1" />
+<li><input type="checkbox" class="checkbox" name="delete_member-<%$member->member_id%>" value="1" />
<%$member->member_obj->object->name%>
% }
</ul>
Modified: rt/branches/3.999-DANGEROUS/html/User/Groups/Modify.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/User/Groups/Modify.html (original)
+++ rt/branches/3.999-DANGEROUS/html/User/Groups/Modify.html Tue Jan 29 17:09:26 2008
@@ -69,7 +69,7 @@
<td><input name="name" value="<%$Group->name%>" /></td>
</tr><tr>
<td align="right">
-<&|/l&>Description</&>:</td><td colspan="3"><input name="Description" value="<%$Group->Description%>" size="60" /></td>
+<&|/l&>Description</&>:</td><td colspan="3"><input name="Description" value="<%$Group->description%>" size="60" /></td>
</tr><tr>
<td colspan="2">
<input type="hidden" class="hidden" name="SetEnabled" value="1" />
Modified: rt/branches/3.999-DANGEROUS/html/User/Prefs.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/User/Prefs.html (original)
+++ rt/branches/3.999-DANGEROUS/html/User/Prefs.html Tue Jan 29 17:09:26 2008
@@ -88,19 +88,19 @@
<table cellspacing="0" cellpadding="0">
<tr>
<td class="label"><&|/l&>Residence</&>:</td>
- <td class="value"><input name="HomePhone" value="<%$user_object->HomePhone || ''%>" size="13" /></td>
+ <td class="value"><input name="HomePhone" value="<%$user_object->home_phone || ''%>" size="13" /></td>
</tr>
<tr>
<td class="label"><&|/l&>Work</&>:</td>
- <td class="value"><input name="WorkPhone" value="<%$user_object->WorkPhone || ''%>" size="13" /></td>
+ <td class="value"><input name="WorkPhone" value="<%$user_object->work_phone || ''%>" size="13" /></td>
</tr>
<tr>
<td class="label"><&|/l&>Mobile</&>:</td>
- <td class="value"><input name="MobilePhone" value="<%$user_object->MobilePhone || ''%>" size="13" /></td>
+ <td class="value"><input name="MobilePhone" value="<%$user_object->mobile_phone || ''%>" size="13" /></td>
</tr>
<tr>
<td class="label"><&|/l&>Pager</&>:</td>
- <td class="value"><input name="PagerPhone" value="<%$user_object->PagerPhone || ''%>" size="13" /></td>
+ <td class="value"><input name="PagerPhone" value="<%$user_object->pager_phone || ''%>" size="13" /></td>
</tr>
</table>
</&>
@@ -145,19 +145,19 @@
</tr>
<tr>
<td class="label"><&|/l&>City</&>:</td>
- <td><input name="City" value="<%$user_object->City || ''%>" size="14" /></td>
+ <td><input name="City" value="<%$user_object->city || ''%>" size="14" /></td>
</tr>
<tr>
<td class="label"><&|/l&>State</&>:</td>
- <td class="value"><input name="State" value="<%$user_object->State || ''%>" size="3" /></td>
+ <td class="value"><input name="State" value="<%$user_object->state || ''%>" size="3" /></td>
</tr>
<tr>
<td class="label"><&|/l&>Zip</&>:</td>
- <td class="value"><input name="Zip" value="<%$user_object->Zip || ''%>" size="9" /></td>
+ <td class="value"><input name="Zip" value="<%$user_object->zip || ''%>" size="9" /></td>
</tr>
<tr>
<td class="label"><&|/l&>Country</&>:</td>
- <td class="value"><input name="Country" value="<%$user_object->Country || ''%>" /></td>
+ <td class="value"><input name="Country" value="<%$user_object->country || ''%>" /></td>
</tr>
</table>
</&>
@@ -175,7 +175,7 @@
<br />
<&| /Widgets/TitleBox, title => _('Signature') &>
<textarea cols="80" rows="5" name="Signature" class="signature" wrap="hard">
-<%$user_object->Signature || ''%></textarea>
+<%$user_object->signature || ''%></textarea>
</&>
% }
More information about the Rt-commit
mailing list