[Rt-commit] r8171 - rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements

ruz at bestpractical.com ruz at bestpractical.com
Mon Jul 16 13:03:50 EDT 2007


Author: ruz
Date: Mon Jul 16 13:03:49 2007
New Revision: 8171

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ColumnMap

Log:
* add 'return undef' to avoid zeros in search results, here is demonstartion:
  perl -e 'sub x { if (my ($v) = "a" =~ /(\d+)/ ) { return $v } }; print x(), "\n"'


Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ColumnMap
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ColumnMap	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ColumnMap	Mon Jul 16 13:03:49 2007
@@ -105,5 +105,6 @@
 
     return sub { $COLUMN_MAP->{$mainkey}->{$Attr}->( @_, $subkey ) };
 }
+return undef;
 
 </%INIT>


More information about the Rt-commit mailing list