[freeside-commits] branch master updated. a8bdd6bf5d005af9dff6b53047ba378ef6912302

Mark Wells mark at 420.am
Tue Jun 30 10:00:20 PDT 2015


The branch, master has been updated
       via  a8bdd6bf5d005af9dff6b53047ba378ef6912302 (commit)
      from  cc577407362f8b64817afbe89d23888a0a5b63f9 (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 a8bdd6bf5d005af9dff6b53047ba378ef6912302
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