Blesta Addons Posted October 11, 2018 Report Posted October 11, 2018 in some case, we don't want to pass the validate services function for the order form or when service status is pending, we need it only when activating service . Real case : in some cases, we need only to accept order, then the admin activate the order with filling the service fields data, only then we want to allow module/service to validate the entered data. . Quote
Tyson Posted October 12, 2018 Report Posted October 12, 2018 Creating a service without validating the service first sounds like a logical mistake. If your module does not need to validate the service you could have it always return true from it's validate method. Quote
Blesta Addons Posted October 12, 2018 Author Report Posted October 12, 2018 4 hours ago, Tyson said: Creating a service without validating the service first sounds like a logical mistake. If your module does not need to validate the service you could have it always return true from it's validate method. maybe i have made i wrong explanation, we don't want to add service without validation, we want only to collect order from client without validation (order form) maybe a new settings in modules or order form!!! the validation will pass in service creation . i see logical to have validateService() inside add service, but i see it would be also a logical to validate data or not in the order form. in my case i have resolved it with some modifications, but i think this can help others if implemented in the core . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.