mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-23 21:33:02 +09:00
Order Addon onAfterAdminOrderActivate
After addon was activated, callout onBeforeAdminOrderActivate was called again. As a result, no emails were sent out on (in my case) the availability of downloadable products. Works in conjunction with #389.
This commit is contained in:
1 parent
f6bd289602
commit
fb876152c2
1 file changed
+2
-2
@@ -656,7 +656,7 @@ class Service implements InjectionAwareInterface
|
||||
try {
|
||||
$this->di['events_manager']->fire(array('event' => 'onBeforeAdminOrderActivate', 'params' => array('id' => $addon->id)));
|
||||
$this->createFromOrder($addon);
|
||||
$this->di['events_manager']->fire(array('event' => 'onBeforeAdminOrderActivate', 'params' => array('id' => $addon->id)));
|
||||
$this->di['events_manager']->fire(array('event' => 'onAfterAdminOrderActivate', 'params' => array('id' => $addon->id)));
|
||||
} catch (\Exception $e) {
|
||||
error_log($e->getMessage());
|
||||
}
|
||||
@@ -1327,4 +1327,4 @@ class Service implements InjectionAwareInterface
|
||||
$stmt->execute(array('id'=>$client->id));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user