Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
There seems to be an error where only the first of the filtered grupes is used. In FilteredMemberPickerDataType.cs the filter seems to be applied, but it only use the first value.
//- Add the filters if (filters.Length == 1){sb.Append( "(cmsMember2MemberGroup.MemberGroup = " + filters[0] + ")");} else if (filters.Length > 1){ foreach (string s in filters){sb.Append( "(cmsMember2MemberGroup.MemberGroup = " + filters[0] + ") OR ");} //- Remove the trailing ORsb.Remove(sb.Length - 3, 3);}
//- Add the filters
if (filters.Length == 1)
{
sb.Append(
"(cmsMember2MemberGroup.MemberGroup = " + filters[0] + ")");
}
else if (filters.Length > 1)
foreach (string s in filters)
"(cmsMember2MemberGroup.MemberGroup = " + filters[0] + ") OR ");
//- Remove the trailing OR
sb.Remove(sb.Length - 3, 3);
suggest filters[0] in the foreach loop is changed to s. or something like this
//- Add the filters if (filters.Length > 0){ foreach (string s in filters)sb.Append( "(cmsMember2MemberGroup.MemberGroup = " + s + ") OR "); //- Remove the trailing ORsb.Remove(sb.Length - 3, 3);}
if (filters.Length > 0)
"(cmsMember2MemberGroup.MemberGroup = " + s + ") OR ");
Cheers,Harald
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Multiple member groups
There seems to be an error where only the first of the filtered grupes is used.
In FilteredMemberPickerDataType.cs the filter seems to be applied, but it only use the first value.
suggest filters[0] in the foreach loop is changed to s. or something like this
Cheers,
Harald
is working on a reply...