mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Clean components when removing plugin (server)
This commit is contained in:
parent
452d5d0b73
commit
d2710b2e66
@ -94,6 +94,12 @@ function plugins_delete_plugin(int $id_plugin)
|
||||
$result = $problem;
|
||||
}
|
||||
|
||||
// Remove all components related to this plugin.
|
||||
db_process_sql_delete(
|
||||
'tnetwork_component',
|
||||
[ 'id_plugin' => $id_plugin ]
|
||||
);
|
||||
|
||||
if (is_metaconsole() === true && is_management_allowed() === true) {
|
||||
$sc = new Synchronizer();
|
||||
$problems = $sc->apply(
|
||||
|
Loading…
x
Reference in New Issue
Block a user