Commit f61593be authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 174112 Edit multiple bugs broken

r=burnus
parent 3a6b7a7b
...@@ -200,7 +200,7 @@ sub GetGroupsByUserId { ...@@ -200,7 +200,7 @@ sub GetGroupsByUserId {
return if !$userid; return if !$userid;
SendSQL(" SendSQL("
SELECT groups.id, name, description, isactive SELECT DISTINCT groups.id, name, description, isactive
FROM groups, user_group_map FROM groups, user_group_map
WHERE user_id = $userid AND NOT isbless WHERE user_id = $userid AND NOT isbless
AND user_group_map.group_id = groups.id AND user_group_map.group_id = groups.id
......
...@@ -931,6 +931,7 @@ if ($::FORM{'keywords'}) { ...@@ -931,6 +931,7 @@ if ($::FORM{'keywords'}) {
my $keywordaction = $::FORM{'keywordaction'} || "makeexact"; my $keywordaction = $::FORM{'keywordaction'} || "makeexact";
if ($::comma eq "" if ($::comma eq ""
&& (! @groupAdd) && (! @groupDel)
&& (! @::legal_keywords || (0 == @keywordlist && $keywordaction ne "makeexact")) && (! @::legal_keywords || (0 == @keywordlist && $keywordaction ne "makeexact"))
&& defined $::FORM{'masscc'} && ! $::FORM{'masscc'} && defined $::FORM{'masscc'} && ! $::FORM{'masscc'}
) { ) {
......
...@@ -182,14 +182,14 @@ ...@@ -182,14 +182,14 @@
[% FOREACH group = groups %] [% FOREACH group = groups %]
<tr> <tr>
<td align="center"> <td align="center">
<input type="radio" name="bit-[% group.bit %]" value="-1" checked="checked"> <input type="radio" name="bit-[% group.id %]" value="-1" checked="checked">
</td> </td>
<td align="center"> <td align="center">
<input type="radio" name="bit-[% group.bit %]" value="0"> <input type="radio" name="bit-[% group.id %]" value="0">
</td> </td>
[% IF group.isactive %] [% IF group.isactive %]
<td align="center"> <td align="center">
<input type="radio" name="bit-[% group.bit %]" value="1"> <input type="radio" name="bit-[% group.id %]" value="1">
</td> </td>
[% ELSE %] [% ELSE %]
<td>&nbsp;</td> <td>&nbsp;</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment