[freeside-commits] freeside/httemplate/search/elements search.html,
1.17, 1.18
Ivan,,,
ivan at wavetail.420.am
Tue Sep 13 13:12:07 PDT 2005
- Previous message: [freeside-commits] freeside/httemplate/edit cust_main.cgi, 1.56,
1.57
- Next message: [freeside-commits] freeside/FS/t agent_payment_gateway.t, NONE,
1.1 cancel_reason.t, 1.1, 1.2 payment_gateway.t, 1.1,
1.2 payment_gateway_option.t, 1.1, 1.2 banned_pay.t, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail:/tmp/cvs-serv8395
Modified Files:
search.html
Log Message:
fix redirect with single item returned from search results and a coderef redirect
Index: search.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/search.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- search.html 7 Aug 2005 00:40:02 -0000 1.17
+++ search.html 13 Sep 2005 20:12:04 -0000 1.18
@@ -183,7 +183,9 @@
} else { # regular HTML
if ( exists($opt{'redirect'}) && scalar(@$rows) == 1 && $total == 1 ) {
- my( $url, $method ) = @{$opt{'redirect'}};
+ my $redirect = $opt{'redirect'};
+ $redirect = &{$redirect}($rows->[0]) if ref($redirect) eq 'CODE';
+ my( $url, $method ) = @$redirect;
redirect( $url. $rows->[0]->$method() );
} else {
( my $xlsname = $opt{'name'} ) =~ s/\W//g;
- Previous message: [freeside-commits] freeside/httemplate/edit cust_main.cgi, 1.56,
1.57
- Next message: [freeside-commits] freeside/FS/t agent_payment_gateway.t, NONE,
1.1 cancel_reason.t, 1.1, 1.2 payment_gateway.t, 1.1,
1.2 payment_gateway_option.t, 1.1, 1.2 banned_pay.t, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list