Skip to content

SolusIO module intercepting upgrade orders #51

@mrtimp

Description

@mrtimp

Hi there,

The AfterProductUpgrade hook in the hooks file:

solusiovps/hooks.php

Lines 15 to 17 in e97c096

add_hook('AfterProductUpgrade', 1, function (array $params) {
Product::upgrade($params['upgradeid']);
});

seems to be intercepting all upgrades created via the client area even if they are for orders that do not relate to products using the SolusIO provisioning module and causing the following error:

1d6718ce-a722-4692-9e95-a7e60572a495

This functionality is currently blocking our ability to use this module as it blocks the ability to upgrade/downgrade other product types.

I'm picking a fix would be additional checking in WHMCS\Module\Server\SolusIoVps\WhmcsAPI\Product::upgrade to only perform the resize if the product uses the SolusIO provisioning module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions