[Rt-commit] [svn] r1941 - in rt/branches/3.3-TESTING: .
html/Elements/CollectionAsTable html/Elements/RT__Ticket lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Sat Nov 27 01:38:00 EST 2004
Author: jesse
Date: Sat Nov 27 01:38:00 2004
New Revision: 1941
Modified:
rt/branches/3.3-TESTING/ (props changed)
rt/branches/3.3-TESTING/html/Elements/CollectionAsTable/Row
rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap
rt/branches/3.3-TESTING/lib/RT/Record.pm
Log:
r9414 at tinbook: jesse | 2004-11-27T06:29:04.667691Z
Multiple fixes to search result display
Modified: rt/branches/3.3-TESTING/html/Elements/CollectionAsTable/Row
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/CollectionAsTable/Row (original)
+++ rt/branches/3.3-TESTING/html/Elements/CollectionAsTable/Row Sat Nov 27 01:38:00 2004
@@ -58,7 +58,7 @@
foreach my $column (@Format) {
if ( $column->{title} eq 'NEWLINE' ) {
while ($item < $maxitems) {
- $m->out('<td class="collection-as-table">> </td>\n');
+ $m->out(qq{<td class="collection-as-table"> </td>\n});
$item++;
}
$item = 0;
Modified: rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap (original)
+++ rt/branches/3.3-TESTING/html/Elements/RT__Ticket/ColumnMap Sat Nov 27 01:38:00 2004
@@ -94,6 +94,7 @@
my $method = shift;
my $mode = $RT::Ticket::LINKTYPEMAP{$method}{Mode};
+ my $type = $RT::Ticket::LINKTYPEMAP{$method}{Type};
my $mode_uri = $mode.'URI';
my $mode_is_local = $mode.'IsLocal';
my $local_type = 'Local'.$mode;
@@ -105,7 +106,7 @@
\'">',
( $_->$mode_is_local ? $_->$local_type : $_->$mode ),
\'</A><BR>',
- } @{ $_[0]->$method->ItemsArrayRef }
+ } @{ $_[0]->Links($mode,$type)->ItemsArrayRef }
}
}
@@ -232,7 +233,7 @@
value => sub {
my $date = $_[0]->DueObj;
if ($date && $date->Unix > 0 && $date->Unix < time()) {
- return \'<span class="overdue">' . $date->AgeAsString . \'</span>';
+ return (\'<span class="overdue">' , $date->AgeAsString , \'</span>');
} else {
return $date->AgeAsString;
}
Modified: rt/branches/3.3-TESTING/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/Record.pm (original)
+++ rt/branches/3.3-TESTING/lib/RT/Record.pm Sat Nov 27 01:38:00 2004
@@ -1148,6 +1148,14 @@
# {{{ sub _Links
+=head2 Links DIRECTION TYPE
+
+return links to/from this object.
+
+=cut
+
+*Links = \&_Links;
+
sub _Links {
my $self = shift;
More information about the Rt-commit
mailing list