[freeside-commits] branch FREESIDE_4_BRANCH updated. e21e6a373962bcfa7c14bd4bb3e22d106badd9cd
Mark Wells
mark at 420.am
Tue Jun 30 10:00:19 PDT 2015
The branch, FREESIDE_4_BRANCH has been updated
via e21e6a373962bcfa7c14bd4bb3e22d106badd9cd (commit)
from 204edd2e581a9a0e30f87135ce30a360783801ba (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e21e6a373962bcfa7c14bd4bb3e22d106badd9cd
Author: Mark Wells <mark at freeside.biz>
Date: Tue Jun 30 09:56:46 2015 -0700
fix processing of aligns with agent-virt, #25944
diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html
index 80bc89d..c58e636 100644
--- a/httemplate/search/elements/search.html
+++ b/httemplate/search/elements/search.html
@@ -245,6 +245,18 @@ $opt{disable_download} = 0
$opt{disable_download} = 1
if $opt{really_disable_download};
+# split/map aligns here, so that agent_virt can add a column
+# (search-html.html will split aligns also if they aren't already split)
+my %align = (
+ 'l' => 'left',
+ 'r' => 'right',
+ 'c' => 'center',
+ ' ' => '',
+ '.' => '',
+);
+$opt{align} = [ map $align{$_}, split(//, $opt{align}) ],
+ unless !$opt{align} || ref($opt{align});
+
# get our queries ready
my $query = $opt{query} or die "query required";
my $count_query = $opt{count_query} or die "count_query required";
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/elements/search.html | 12 ++++++++++++
1 file changed, 12 insertions(+)
More information about the freeside-commits
mailing list