[Rt-commit] r15552 - in rt/branches/3.999-DANGEROUS: lib/RT lib/RT/Interface share/html/Ticket/Elements
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Wed Aug 27 14:01:27 EDT 2008
Author: sunnavy
Date: Wed Aug 27 14:01:23 2008
New Revision: 15552
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/lib/RT/Interface/Web.pm
rt/branches/3.999-DANGEROUS/lib/RT/Record.pm
rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditDates
Log:
r16163 at sunnavys-mb: sunnavy | 2008-08-28 01:51:40 +0800
name fix
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 Aug 27 14:01:23 2008
@@ -1279,24 +1279,24 @@
# {{{ Set date fields
my @date_fields = qw(
- Told
- Resolved
+ told
+ resolved
starts
- Started
- Due
+ started
+ due
);
#Run through each field in this list. update the value if apropriate
foreach my $field (@date_fields) {
- next unless exists $args_ref->{ $field . '_Date' };
- next if $args_ref->{ $field . '_Date' } eq '';
+ next unless exists $args_ref->{ $field . '_date' };
+ next if $args_ref->{ $field . '_date' } eq '';
my ( $code, $msg );
my $DateObj = RT::Date->new();
$DateObj->set(
format => 'unknown',
- value => $args_ref->{ $field . '_Date' }
+ value => $args_ref->{ $field . '_date' }
);
my $obj = $field . "_obj";
Modified: rt/branches/3.999-DANGEROUS/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Record.pm (original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Record.pm Wed Aug 27 14:01:23 2008
@@ -360,7 +360,7 @@
# There is room for optimizations in most of those subs:
-# {{{ last_updatedObj
+# {{{ last_updated_obj
sub last_updated_obj {
my $self = shift;
@@ -396,7 +396,7 @@
# }}}
-# {{{ last_updatedAsString
+# {{{ last_updated_as_string
# TODO this should be deprecated
@@ -490,9 +490,9 @@
# }}}
-# {{{ sub _setlast_updated
+# {{{ sub set_last_updated
-=head2 _setlast_updated
+=head2 set_last_updated
This routine updates the last_updated and last_updated_by columns of the row in question
It takes no options. Arguably, this is a bug
@@ -546,11 +546,11 @@
sub last_updated_by_obj {
my $self = shift;
- unless ( exists $self->{last_updated_byObj} ) {
- $self->{'last_updated_byObj'} = RT::Model::User->new;
- $self->{'last_updated_byObj'}->load( $self->last_updated_by );
+ unless ( exists $self->{last_updated_by_obj} ) {
+ $self->{'last_updated_by_obj'} = RT::Model::User->new;
+ $self->{'last_updated_by_obj'}->load( $self->last_updated_by );
}
- return $self->{'last_updated_byObj'};
+ return $self->{'last_updated_by_obj'};
}
# }}}
Modified: rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditDates
==============================================================================
--- rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditDates (original)
+++ rt/branches/3.999-DANGEROUS/share/html/Ticket/Elements/EditDates Wed Aug 27 14:01:23 2008
@@ -53,7 +53,7 @@
</tr>
<tr>
<td class="label"><&|/l&>Started</&>:</td>
- <td class="entry"><& /Elements/SelectDate, menu_prefix => 'Started', current => 0 &> (<%$ticket_obj->started_obj->as_string %>)</td>
+ <td class="entry"><& /Elements/SelectDate, menu_prefix => 'started', current => 0 &> (<%$ticket_obj->started_obj->as_string %>)</td>
</tr>
<tr>
@@ -61,13 +61,13 @@
<&|/l&>Last Contact</&>:
</td>
<td class="entry">
- <& /Elements/SelectDate, menu_prefix => 'Told', current => 0 &> (<% $ticket_obj->told_obj->as_string %>)
+ <& /Elements/SelectDate, menu_prefix => 'told', current => 0 &> (<% $ticket_obj->told_obj->as_string %>)
</td>
</tr>
<tr>
<td class="label"><&|/l&>Due</&>:</td>
<td class="entry">
- <& /Elements/SelectDate, menu_prefix => 'Due', current => 0 &> (<% $ticket_obj->due_obj->as_string %>)
+ <& /Elements/SelectDate, menu_prefix => 'due', current => 0 &> (<% $ticket_obj->due_obj->as_string %>)
</td>
</tr>
</table>
More information about the Rt-commit
mailing list