Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Vincent <jesse@bestpractical.com>2000-12-17 00:15:30 +0300
committerJesse Vincent <jesse@bestpractical.com>2000-12-17 00:15:30 +0300
commita4586e35ad4775b1f89ea218b1239b9e1e489704 (patch)
tree7e2d0f68c8bfc4d55e997fe6a2446bdce73a3878
parent99a09707819c1eb3b2c6bfe5efef05ecbb232890 (diff)
commeted out some toolbar actions which don't work yet.rt-1.3.27
bumped the version to 1.3.27 for imminent release.
-rwxr-xr-xMakefile2
-rw-r--r--webrt/Ticket/Elements/TicketToolBox24
2 files changed, 16 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 425a9d3a72..49d7df6387 100755
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ PERL = /usr/bin/perl
RT_VERSION_MAJOR = 1
RT_VERSION_MINOR = 3
-RT_VERSION_PATCH = 26
+RT_VERSION_PATCH = 27
RT_VERSION = $(RT_VERSION_MAJOR).$(RT_VERSION_MINOR).$(RT_VERSION_PATCH)
TAG = rt-$(RT_VERSION_MAJOR)-$(RT_VERSION_MINOR)-$(RT_VERSION_PATCH)
diff --git a/webrt/Ticket/Elements/TicketToolBox b/webrt/Ticket/Elements/TicketToolBox
index 109f739ba3..4d462f3e62 100644
--- a/webrt/Ticket/Elements/TicketToolBox
+++ b/webrt/Ticket/Elements/TicketToolBox
@@ -1,23 +1,29 @@
-<%$take%> <%$open%> | <a href="Modify.html?id=<%$id%>">Modify</a> | <a href="Update.html?Action=Comment&id=<%$id%>">Comment</a>
-
+<%$take|n%> <%$open|n%> <%$resolve|n%>
+<BR>
<%ARGS>
$Ticket = undef
</%ARGS>
<%INIT>
-my $subj=$Ticket->Subject||"(No subject given)";
my $id=$Ticket->Id;
my $can_open=($Ticket->Status ne 'open');
-my $can_take=($Ticket->OwnerObj->id == $RT::Nobody);
+my $can_resolve=($Ticket->Status ne 'resolved');
+my $can_take=($Ticket->OwnerObj->id == $RT::Nobody->id);
my $can_steal=!$can_take && $Ticket->OwnerObj->id!=$session{CurrentUser}->id;
-my $take="";
-my $open="";
+my ($open, $take, $resolve);
+
if ($can_take) {
- $take="<a href=\"Display.html?Action=Take&id=$id\">Take</a> /";
+ $take="<a href=\"Display.html?Action=Take&id=$id\">Take</a> |";
} elsif ($can_steal) {
- $take="<blink><strong><a href=\"Display.html?Action=Steal&id=$id\">Steal</a></strong></blink> /";
+ $take="<strong><a href=\"Display.html?Action=Steal&id=$id\">Steal</a></strong> |";
+}
+
+if (0) { # no code to deal with this.
+if ($can_resolve) {
+$resolve="<a href=\"Display.html?Action=SetStatus&SetStatus=resolved&id=$id\">Resolve</a> |";
}
if ($can_open) {
- $open="<a href=\"Display.html?Action=SetStatus&SetStatus=open&id=$id\">Open</a> /";
+ $open="<a href=\"Display.html?Action=SetStatus&SetStatus=open&id=$id\">Open</a> |";
+}
}
</%INIT>