v1.2.11.1

This commit is contained in:
2023-10-16 16:22:45 +01:00
parent fbac433f63
commit 52232331f8
21 changed files with 82 additions and 23 deletions
@@ -43,7 +43,7 @@ namespace Saxonite.Net.Core.Web.Admin.Controllers
responseData.SetControlError(nameof(model.ContactValue), Localiser["msg.validation.mandatory.value"]);
// Method specific value validation.
if (!SaxContactMethodHelper.IsValidContactMethodValue(method, model.ContactValue))
if (!model.ContactValue.IsEmpty() && !SaxContactMethodHelper.IsValidContactMethodValue(method, model.ContactValue))
{
// Log invalid values so that the validation can be adjusted if needed.
SaLogger.Warn(fn + " Invalid contact method value. Mathod: " + method.ToString() + ". Value: " + model.ContactValue);