Skip to content

Commit

Permalink
Fix for group doubleList manager bug. Spotted by Alexander Ling.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Nov 26, 2003
1 parent 89e5a56 commit 2974afb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions comp/widgets/help/debuggers.html
Expand Up @@ -31,4 +31,5 @@
<li>Gary Gilchrist</li>
<li>Creighton Higgins</li>
<li>Earle Martin</li>
<li>Alexander Ling</li>
</ul>
12 changes: 8 additions & 4 deletions lib/Bric/Biz/Person/User.pm
Expand Up @@ -8,18 +8,18 @@ Bric::Biz::Person::User - Interface to Bricolage User Objects
=head1 VERSION
$Revision: 1.25 $
$Revision: 1.26 $
=cut

# Grab the Version Number.
our $VERSION = (qw$Revision: 1.25 $ )[-1];
our $VERSION = (qw$Revision: 1.26 $ )[-1];

=pod
=head1 DATE
$Date: 2003-09-16 04:44:46 $
$Date: 2003-11-26 15:21:08 $
=head1 SYNOPSIS
Expand Down Expand Up @@ -1428,13 +1428,17 @@ $get_em = sub {
$wheres .= " AND u.id = c2.object_id AND c2.member__id = m2.id" .
" AND m2.active = 1 AND m2.grp__id = ?";
push @params, $v;
} elsif ($k eq 'active') {
$wheres .= " AND u.$k = ?";
push @params, $v ? 1 : 0;
} else {
$wheres .= " AND LOWER(p.$k) LIKE ?";
push @params, lc $v;
}
}

$wheres .= ' AND u.active = 1' unless defined $args->{id};
$wheres .= ' AND u.active = 1' unless defined $args->{id}
or exists $args->{active};
my ($qry_cols, $order) = $ids ? (\'DISTINCT u.id', 'u.id') :
(\$sel_cols, 'LOWER(p.lname), LOWER(p.fname), LOWER(p.mname), u.id');

Expand Down
5 changes: 5 additions & 0 deletions lib/Bric/Changes.pod
Expand Up @@ -147,6 +147,11 @@ elements can type in the key name field. Thanks to Arthur for the spot!
The Template toolkit burner now correctly uses element key names instead of
names to find corresponding templates. [David]

=item *

Management of user groups in a double list manager UI no longer causes an SQL
error. Spotted by Alexander Ling. [David]

=back

=head1 VERSION 1.7.0 (2003-10-22)
Expand Down
2 changes: 2 additions & 0 deletions lib/Bric/License.pod
Expand Up @@ -227,6 +227,8 @@ Friends who have spotted bugs include:

=item Earle Martin

=item Alexander Ling

=back

Bricolage's translation team:
Expand Down

0 comments on commit 2974afb

Please sign in to comment.