Jonathan Posted March 5, 2020 Report Posted March 5, 2020 Presently there's no way to access the suspension reason within the suspendService() method in modules. Looking at the source in app/models/services.php this is because the updated suspension_reason isn't set until after suspendService() runs, thus the suspension_reason field in the $service object is incorrect (ie it's the old/previous reason, if any). It would be great to be able to pass this value along to modules which may have their own methods of notifying customers, taking actions, etc. activa, Jono and Blesta Addons 3 Quote
Jonathan Posted July 1, 2020 Author Report Posted July 1, 2020 Any thoughts? Pretty basic nicety for module development... Blesta Addons 1 Quote
Jono Posted September 22, 2020 Report Posted September 22, 2020 https://dev.blesta.com/browse/CORE-3902 Quote
Paul Posted March 18, 2021 Report Posted March 18, 2021 I pushed this up a bit in our backlog. Is there a specific use-case that we could consider? Normally we wouldn't expect modules to send any notifications on their own.. I guess if the reason can be pushed to an external system and seen there. Quote
Blesta Addons Posted April 14, 2021 Report Posted April 14, 2021 On 3/18/2021 at 8:00 PM, Paul said: I pushed this up a bit in our backlog. Is there a specific use-case that we could consider? Normally we wouldn't expect modules to send any notifications on their own.. I guess if the reason can be pushed to an external system and seen there. cpanel support suspension reason, normally when blesta can suspend a service in non paiement, and sometimes we suspend the service manually, and it would be great to send the suspension reason, that way the admin server can know the reason for suspension (request by client, spam, verification ..ect ) 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.