You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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:
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 !
The text was updated successfully, but these errors were encountered: