Nop version 4.6(String Validation Issue)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 anno tempo fa
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......................
1 anno tempo fa
Please provide more information.  Where do you see the message?  What is a "Test field"?
Is this related to your customization?
1 anno tempo fa
Make the field nullabel in the model

        [NopResourceDisplayName("Plugins.Group.Name.Fields.TestField")]
        public string? TestField{ get; set; }
1 anno tempo fa
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.