forked from Wavyzz/dolibarr
Merge pull request #23188 from gdsoftdev/hook_order_execution
FIX: Hook order execution
This commit is contained in:
@@ -131,8 +131,10 @@ class HookManager
|
||||
dol_syslog(get_class($this)."::initHooks Loading hooks: ".join(', ', $arraytolog), LOG_DEBUG);
|
||||
}
|
||||
|
||||
if (!empty($this->hooks[$context])) {
|
||||
ksort($this->hooks[$context], SORT_NATURAL);
|
||||
foreach ($arraycontext as $context) {
|
||||
if (!empty($this->hooks[$context])) {
|
||||
ksort($this->hooks[$context], SORT_NATURAL);
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user