[Rt-commit] r3268 - in rt/branches/CHALDEA-EXPERIMENTAL: .
html/Ticket/Elements
alexmv at bestpractical.com
alexmv at bestpractical.com
Fri Jul 1 00:29:52 EDT 2005
Author: alexmv
Date: Fri Jul 1 00:29:51 2005
New Revision: 3268
Modified:
rt/branches/CHALDEA-EXPERIMENTAL/ (props changed)
rt/branches/CHALDEA-EXPERIMENTAL/html/Ticket/Elements/Reminders
Log:
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 00:29:51 2005
@@ -11,10 +11,15 @@
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 } ) {
-
+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');
+ }
+ }
$Ticket->Reminders->Resolve($reminder);
}
elsif ( $reminder->Status eq 'resolved' && !$request_args->{ 'Complete-Reminder-' . $reminder->id } ) {
@@ -44,15 +49,16 @@
$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 &>
% }
% }
+% }
<br />
<br />
<&|/l&>New reminder:</&><br />
@@ -70,7 +76,7 @@
<& /Elements/SelectOwner, Name => 'NewReminder-Owner', Queue => $Ticket->QueueObj &>
</div>
<div class="horizontal">
-<label class="horizontal" for="NewReminder-Due" ><&|/l&>Due</&> <&|/l&>(yyyy/mm/dd)</&>:</label>
+<label class="horizontal" for="NewReminder-Due" ><&|/l&>Due</l> <&|/l&>(yyyy/mm/dd)</&>:</label>
<input type="text" size="10" name="NewReminder-Due">
</div>
</%method>
More information about the Rt-commit
mailing list