Okay
  Public Ticket #2689362
E-mail not required but required?
Closed

Comments

  • Cristian started the conversation

    My Amelia setup is not working as expected with regards to the required e-mail field in the appointment.

    I am expecting that once I make the e-mail not-required it doesn't error 500 on the frontend, yet it does. Please see the attached screenshot and advise.

    The status of the AJAX call is 500 and the response is: "message: "Email '' is not a valid email"" so I assume it's failing somewhere at the validation step, yet it should be even skipped entirely as the field is empty.

  • Cristian replied

    I applied a temporary fix by adding these lines in my /wp-content/plugins/ameliabooking/src/Domain/ValueObjects/String/Email.php file:


    if (empty($email)){
    $this->email = $email;
    return;
    }


    Yet most likely a permanent fix from you guys should come.



    5502123986.png


  • [deleted] replied

    Hi, Cristian!

    Thank you for reporting this issue.

    I will forward this information to our developers and get back to you once I receive their response.

    Best Regards.