[MOD] check if has associates before deactivate

Merged Ignacio Goitea requested to merge 12.0-ADD-check-if-has-associates into 12.0-stage

Merge request reports