[wellwell-devel] [SCM] Interchange wellwell catalog branch, master, updated. 368a6d7333f92dfd817aa6f8e0f37706738f1600

Stefan Hornburg racke at rt.icdevgroup.org
Fri Feb 5 14:14:17 UTC 2010


       via  368a6d7333f92dfd817aa6f8e0f37706738f1600 (commit)
      from  19cde9e2a1293fde74f69e165c6a9744658c2f6f (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 368a6d7333f92dfd817aa6f8e0f37706738f1600
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date:   Fri Feb 5 15:13:58 2010 +0100

    apply filters to selected columns

-----------------------------------------------------------------------

Summary of changes and diff:
 lib/Vend/Panel.pm |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/Vend/Panel.pm b/lib/Vend/Panel.pm
index 3101555..5d4aeb2 100644
--- a/lib/Vend/Panel.pm
+++ b/lib/Vend/Panel.pm
@@ -71,8 +71,11 @@ sub panel {
 		
 		$set = $db->query({sql => qq{select $colstr from $table}, hashref => 1});
 
-		for (@$set) {
-			push(@out, $panel->fill_simple($_));
+		for my $row (@$set) {
+			for my $fltvar (%{$opt->{filters}}) {
+				$row->{$fltvar} = Vend::Tags->filter({op => $opt->{filters}->{$fltvar}, body => $row->{$fltvar}});
+			}
+			push(@out, $panel->fill_simple($row));
 		}
 	}
 


hooks/post-receive
-- 
Interchange wellwell catalog



More information about the wellwell-devel mailing list