[prev in list] [next in list] [prev in thread] [next in thread]
List: bricolage-general
Subject: Re: Problem with alias
From: Scott Lanning <lannings () who ! int>
Date: 2007-06-19 15:03:42
Message-ID: Pine.LNX.4.64.0706191643180.5463 () localhost ! localdomain
[Download RAW message or body]
On Tue, 19 Jun 2007, Rolf Schaufelberger wrote:
> in the UI, but they are kept in the database and it looks like the
> get_output_channel function does't watch the active flag or whatever.
Yeah, I bet that's the problem.
Could you try:
Index: lib/Bric/Biz/OutputChannel.pm
===================================================================
--- lib/Bric/Biz/OutputChannel.pm (revision 7925)
+++ lib/Bric/Biz/OutputChannel.pm (working copy)
@@ -1754,6 +1754,10 @@
my $tables = $pkg->SEL_TABLES;
my $wheres = $pkg->SEL_WHERES;
my @params;
+
+ $params->{active} = (exists $params->{active} and !$params->{active})
+ ? 0 : 1;
+
while (my ($k, $v) = each %$params) {
if ($k eq 'id' or $k eq 'uri_case') {
# Simple numeric comparison.
Though I'm not sure if it's safe to assume that OutputChannel->list
defaults to active=1.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic