1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed New user conversation doesn't allow only one participant?

Discussion in 'Resolved Bug Reports' started by Liam W, Jul 9, 2015.

  1. Liam W

    Liam W Well-Known Member

    I'm trying to setup the new user conversation feature, but I keep on getting the 'Please enter at least one valid recipient.' error when saving.

    I've entered my username in the recipient box, as I want to be the sender and noone else needs to participate.

    If I add another user, it works fine.

    Liam
     
    Romchik® likes this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    Fixed now, thanks.

    Relatively straight forward self-fix.

    library/XenForo/Option/RegistrationWelcome.php:

    PHP:
    if ($conversationDw->hasErrors())
    {
        
    $errors $conversationDw->getErrors();
        
    $dw->error(reset($errors), $fieldName);
        return 
    false;
    }
    Change that to:
    PHP:
    if ($conversationDw->hasErrors())
    {
        
    $errors $conversationDw->getErrors();

        if (isset(
    $errors['recipients']))
        {
            unset(
    $errors['recipients']);
        }

        if (
    count($errors))
        {
            
    $dw->error(reset($errors), $fieldName);
            return 
    false;
        }
    }
     
  3. Gene Steinberg

    Gene Steinberg Well-Known Member

    Now I get:

    "You must enter an email message to enable the welcome email."

    But I did.
     

Share This Page