[Rt-commit] [svn] r838 - in rt/branches/rt-3.1: . html/Elements
html/Ticket/Elements sbin
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Wed May 5 20:33:33 EDT 2004
Author: jesse
Date: Wed May 5 20:33:31 2004
New Revision: 838
Modified:
rt/branches/rt-3.1/ (props changed)
rt/branches/rt-3.1/html/Elements/Refresh
rt/branches/rt-3.1/html/Elements/SelectMatch
rt/branches/rt-3.1/html/Elements/SelectNewTicketQueue
rt/branches/rt-3.1/html/Elements/SelectQueue
rt/branches/rt-3.1/html/Ticket/Elements/ShowTransaction
rt/branches/rt-3.1/sbin/rt-test-dependencies.in
Log:
----------------------------------------------------------------------
r1069 at Jesse-Vincents-Computer: jesse | 2004-05-06T00:32:58.883200Z
A number of small fixes to play better wtih SQLite
----------------------------------------------------------------------
Modified: rt/branches/rt-3.1/html/Elements/Refresh
==============================================================================
--- rt/branches/rt-3.1/html/Elements/Refresh (original)
+++ rt/branches/rt-3.1/html/Elements/Refresh Wed May 5 20:33:31 2004
@@ -29,7 +29,7 @@
><&|/l&>Don't refresh this page.</&></OPTION>
%foreach my $value (@refreshevery) {
<OPTION VALUE="<%$value%>"
-% if ($value == $Default) {
+% if ( $Default && ($value == $Default)) {
SELECTED
% }
><&|/l, $value/60 &>Refresh this page every [_1] minutes.</&></OPTION>
Modified: rt/branches/rt-3.1/html/Elements/SelectMatch
==============================================================================
--- rt/branches/rt-3.1/html/Elements/SelectMatch (original)
+++ rt/branches/rt-3.1/html/Elements/SelectMatch Wed May 5 20:33:31 2004
@@ -37,7 +37,12 @@
$Default => undef
</%ARGS>
<%INIT>
-my ($TrueDefault, $FalseDefault, $LikeDefault, $NotLikeDefault);
+
+my $TrueDefault = '';
+my $FalseDefault='';
+my $LikeDefault='';
+my $NotLikeDefault ='';
+
if ($Default && $Default =~ /false/i) {
$FalseDefault = "SELECTED";
}
Modified: rt/branches/rt-3.1/html/Elements/SelectNewTicketQueue
==============================================================================
--- rt/branches/rt-3.1/html/Elements/SelectNewTicketQueue (original)
+++ rt/branches/rt-3.1/html/Elements/SelectNewTicketQueue Wed May 5 20:33:31 2004
@@ -24,7 +24,10 @@
<LABEL ACCESSKEY="9">
<SELECT NAME ="<%$Name%>">
% foreach my $queue (@{$session{'create_in_queues'}}) {
-<OPTION VALUE="<%$queue->{'id'}%>" <%($Default && ($queue->{'id'} == $Default)) && 'SELECTED'%>><%$queue->{'Name'}%>
+<OPTION
+ VALUE="<%$queue->{'id'}%>"
+ <%$Default && ($queue->{'id'} == $Default) && 'SELECTED'%>>
+<%$queue->{'Name'}%>
% if (($Verbose) and ($queue->{'Description'}) ){
(<%$queue->{'Description'}%>)
% }
Modified: rt/branches/rt-3.1/html/Elements/SelectQueue
==============================================================================
--- rt/branches/rt-3.1/html/Elements/SelectQueue (original)
+++ rt/branches/rt-3.1/html/Elements/SelectQueue Wed May 5 20:33:31 2004
@@ -32,7 +32,7 @@
% }
% while (my $queue=$q->Next) {
% if ($ShowAllQueues || $queue->CurrentUserHasRight('CreateTicket')) {
-<OPTION VALUE="<%($NamedValues ? $queue->Name : $queue->Id) %>" <%( $queue->Id == $Default ? 'SELECTED' : '')%>><%$queue->Name%>
+<OPTION VALUE="<%($NamedValues ? $queue->Name : $queue->Id) %>" <%( $queue->Id eq $Default ? 'SELECTED' : '')%>><%$queue->Name%>
% if (($Verbose) and ($queue->Description) ){
(<%$queue->Description%>)
% }
Modified: rt/branches/rt-3.1/html/Ticket/Elements/ShowTransaction
==============================================================================
--- rt/branches/rt-3.1/html/Ticket/Elements/ShowTransaction (original)
+++ rt/branches/rt-3.1/html/Ticket/Elements/ShowTransaction Wed May 5 20:33:31 2004
@@ -94,6 +94,8 @@
if ( $Transaction->TimeTaken != 0 ) {
$TimeTaken = $Transaction->TimeTaken . " min";
+} else {
+ $TimeTaken = '';
}
unless ($Attachments) {
Modified: rt/branches/rt-3.1/sbin/rt-test-dependencies.in
==============================================================================
--- rt/branches/rt-3.1/sbin/rt-test-dependencies.in (original)
+++ rt/branches/rt-3.1/sbin/rt-test-dependencies.in Wed May 5 20:33:31 2004
@@ -188,6 +188,10 @@
DBD::Pg
.
+$deps{'SQLITE'} = [ _( << '.') ];
+DBD::SQLite
+.
+
if ($args{'download'}) {
my %modules;
More information about the Rt-commit
mailing list