Skip to content

Commit

Permalink
Fix delete org unit plugin objects (#3358)
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxfw authored May 12, 2021
1 parent 620b106 commit ceb59a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/OrgUnit/classes/class.ilObjOrgUnitGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ public function confirmedDeleteObject()
global $DIC;
if (count($_POST['id']) > 0) {
foreach ($_POST['id'] as $ref_id) {
$il_obj_orgunit = new ilObjOrgUnit($ref_id);
$il_obj_orgunit = ilObjectFactory::getInstanceByRefId($ref_id);
$il_obj_orgunit->delete();
}
ilUtil::sendSuccess($DIC->language()->txt("info_deleted"), true);
Expand Down

0 comments on commit ceb59a5

Please sign in to comment.