Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module::update() is not called after module update with the marketplace #4653

Closed
marc-farre opened this issue Nov 23, 2020 · 2 comments
Closed

Comments

@marc-farre
Copy link
Collaborator

What steps will reproduce the problem?

In the Module.php file, create this class: class Module extends \humhub\components\Module
In this class, create this function:

/**
 * @inheritdoc
 */
public function update()
{
    parent::update();
    
    // Code to execute here after marketplace update
}

What is the expected result?

After module update with the Marketplace, // Code to execute here after marketplace update should have been executed.

What do you get instead?

Code is note exectuded.
Perhaps this code should be in beforeUpdate() ?
Or do we need to create an event to have a code executed after a module update ? The EVENT_AFTER_UPDATE of the marketplace module ?

Additional info

No error in the log.
Thanks for your help !

Q A
HumHub version 1.7
@luke-
Copy link
Contributor

luke- commented Nov 23, 2020

Probably related to: #3872

@marc-farre marc-farre changed the title Module class update function doesn't seem to be called after module update with the marketplace Module::update() is not called after module update with the marketplace Nov 29, 2023
@marc-farre
Copy link
Collaborator Author

Issue moved to #6744

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants