Roundcube Community Forum

 

Max number of group members - bug

Started by mikeloco, January 07, 2015, 05:08:59 AM

Previous topic - Next topic

mikeloco

Hi,
I am able to add new contact in a group even though I limited this in a configuration file $config['max_group_members'] = 10;

The problem is in a program\steps\addressbook\save.inc row 228:

if (($maxnum = $RCMAIL->config->get('max_group_members', 0)) && ($counts->count + 1 > $maxnum))
    $OUTPUT->show_message('maxgroupmembersreached', 'warning', array('max' => $maxnum));
$CONTACTS->add_to_group($plugin['group_id'], $plugin['ids']);


If I add else, the problem is solved


if (($maxnum = $RCMAIL->config->get('max_group_members', 0)) && ($counts->count + 1 > $maxnum))
    $OUTPUT->show_message('maxgroupmembersreached', 'warning', array('max' => $maxnum));
else
    $CONTACTS->add_to_group($plugin['group_id'], $plugin['ids']);


Is it possible to resolve this in a feature release?

BR,
Miodrag