Prevent infinite loop when a dbstructure_definition hook is orphan
- Add cascade option to dba::delete - use cascade = false for orphan hook deletion
This commit is contained in:
@@ -246,7 +246,7 @@ class Addon
|
||||
} else {
|
||||
// remove orphan hooks
|
||||
$condition = ['hook' => $name, 'file' => $hook[0], 'function' => $hook[1]];
|
||||
dba::delete('hook', $condition);
|
||||
dba::delete('hook', $condition, ['cascade' => false]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user