Nop version 4.6(String Validation Issue)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
один год назад
I try to store empty string, then I get validation error (ex. The Test field is required.)
I didn't do anything for required fields(like code, [required] in model)
In old nopcommerce version possible to store empty string value......................
один год назад
Please provide more information.  Where do you see the message?  What is a "Test field"?
Is this related to your customization?
один год назад
Make the field nullabel in the model

        [NopResourceDisplayName("Plugins.Group.Name.Fields.TestField")]
        public string? TestField{ get; set; }
один год назад
Dear Sir,
I'm not going to tell you how to fix it, but in previous NopCommerce versions without ("Make the field nullable in the model"), I was saving nullable string.
because it is possible to store empty and null values in string.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.