Jump to content

Pass suspension_reason to suspendService() in Modules


Jonathan

Recommended Posts

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.

Link to comment
Share on other sites

  • 3 months later...
  • 2 months later...
  • 5 months later...

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.

Link to comment
Share on other sites

  • 4 weeks later...
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 )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...