mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix person validation.
This commit is contained in:
@@ -105,28 +105,33 @@ namespace Marechai.Pages.Admin.Details
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if(_unknownDisplayName)
|
if(_unknownDisplayName)
|
||||||
_model.Alias = null;
|
_model.DisplayName = null;
|
||||||
else if(string.IsNullOrWhiteSpace(_model.Alias))
|
else if(string.IsNullOrWhiteSpace(_model.DisplayName))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(_unknownFacebook)
|
if(_unknownFacebook)
|
||||||
_model.Alias = null;
|
_model.Facebook = null;
|
||||||
else if(string.IsNullOrWhiteSpace(_model.Alias))
|
else if(string.IsNullOrWhiteSpace(_model.Facebook))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(_unknownName)
|
if(_unknownName)
|
||||||
_model.Alias = null;
|
_model.Name = null;
|
||||||
else if(string.IsNullOrWhiteSpace(_model.Alias))
|
else if(string.IsNullOrWhiteSpace(_model.Name))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(_unknownSurname)
|
if(_unknownSurname)
|
||||||
_model.Alias = null;
|
_model.Surname = null;
|
||||||
else if(string.IsNullOrWhiteSpace(_model.Alias))
|
else if(string.IsNullOrWhiteSpace(_model.Surname))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if(_unknownTwitter)
|
||||||
|
_model.Twitter = null;
|
||||||
|
else if(string.IsNullOrWhiteSpace(_model.Twitter))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(_unknownWebpage)
|
if(_unknownWebpage)
|
||||||
_model.Alias = null;
|
_model.Webpage = null;
|
||||||
else if(string.IsNullOrWhiteSpace(_model.Alias))
|
else if(string.IsNullOrWhiteSpace(_model.Webpage))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if((_unknownName && !_unknownSurname) ||
|
if((_unknownName && !_unknownSurname) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user