Permalink
Browse files

Fix for searches on the 'inactive' key

  • Loading branch information...
1 parent 98cdb16 commit d59fc1436d8276d489a75df3afa8b9fbef41f58f @gregheo gregheo committed with theory Mar 28, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Bric/Util/DBI.pm
View
@@ -838,8 +838,10 @@ sub clean_params {
# Make sure to set active explictly if its not passed.
$param->{'active'} = exists $param->{'active'} ? $param->{'active'} : 1;
# Map inverse alias inactive to active.
- $param->{'active'} = ($param->{'inactive'} ? 0 : 1)
- if exists $param->{'inactive'};
+ if (exists $param->{'inactive'}) {
+ $param->{'active'} = ($param->{'inactive'} ? 0 : 1);
+ delete $param->{'inactive'};
+ }
# Help out Template.
$param->{pubished_version} = $param->{deployed_version}
if exists $param->{deployed_version};

0 comments on commit d59fc14

Please sign in to comment.