[Rt-commit] r3274 - in rt/branches/CHALDEA-EXPERIMENTAL: .
html/Ticket/Elements
alexmv at bestpractical.com
alexmv at bestpractical.com
Fri Jul 1 14:48:21 EDT 2005
Author: alexmv
Date: Fri Jul 1 14:48:21 2005
New Revision: 3274
Modified:
rt/branches/CHALDEA-EXPERIMENTAL/ (props changed)
rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Elements/Reminders
Log:
r4600 at zoq-fot-pik: chmrr | 2005-07-01 14:53:11 -0400
* Revert 3268
Modified: rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Elements/Reminders
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Elements/Reminders (original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Elements/Reminders Fri Jul 1 14:48:21 2005
@@ -11,15 +11,10 @@
my $reminder_collection = $Ticket->Reminders->Collection;
-if ($request_args->{'update-reminders'}) {
- while (my $reminder = $reminder_collection->Next) {
- if ($reminder->Status ne 'resolved'
- && $request_args->{'Complete-Reminder-'.$reminder->id}) {
- $reminder->SetStatus('resolved');
- } elsif ($reminder->Status eq 'resolved' && ! $request_args->{'Complete-Reminder-'.$reminder->id}) {
- $reminder->SetStatus('open');
- }
- }
+if ( $request_args->{'update-reminders'} ) {
+ while ( my $reminder = $reminder_collection->Next ) {
+ if ( $reminder->Status ne 'resolved' && $request_args->{ 'Complete-Reminder-' . $reminder->id } ) {
+
$Ticket->Reminders->Resolve($reminder);
}
elsif ( $reminder->Status eq 'resolved' && !$request_args->{ 'Complete-Reminder-' . $reminder->id } ) {
@@ -49,12 +44,12 @@
$reminder_collection = $Ticket->Reminders->Collection;
</%init>
-<input type="hidden" name="id" value="<%$Ticket->id%>" />
+<input type="hidden" name="id" value="<% $Ticket->id %>" />
<input type="hidden" name="update-reminders" value="1" />
% while (my $reminder = $reminder_collection->Next) {
-% if ($reminder->Status eq 'resolved' && !$ShowCompleted) {
+% if ($reminder->Status eq 'resolved' && !$ShowCompleted) {
<input type="hidden" name="Complete-Reminder-<% $reminder->id %>" value="1" />
-% } else {
+% } else {
<& SELF:ShowEntry, Reminder => $reminder, Ticket => $Ticket &>
% }
% }
@@ -76,7 +71,7 @@
<& /Elements/SelectOwner, Name => 'NewReminder-Owner', Queue => $Ticket->QueueObj &>
</div>
<div class="horizontal">
-<label class="horizontal" for="NewReminder-Due" ><&|/l&>Due</l> <&|/l&>(yyyy/mm/dd)</&>:</label>
+<label class="horizontal" for="NewReminder-Due" ><&|/l&>Due</&> <&|/l&>(yyyy/mm/dd)</&>:</label>
<input type="text" size="10" name="NewReminder-Due">
</div>
</%method>
More information about the Rt-commit
mailing list