Skip to content

Commit 54b0c74

Browse files
committed
Fix on Company CRUD
* fix on administrators group updates
1 parent 44afcda commit 54b0c74

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

openstack/code/Company.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,17 @@ public function BigLogoPreview()
510510
return 'missing';
511511
}
512512

513+
function onAfterSkippedWrite(){
514+
$this->saveCompanyAdmins();
515+
}
516+
513517
function onAfterWrite()
514518
{
515519
parent::onAfterWrite();
520+
$this->saveCompanyAdmins();
521+
}
516522

523+
function saveCompanyAdmins(){
517524
if (Controller::curr() instanceof CompanyAdmin) { // check if we are on admin (CMS side)
518525
//update all relationships with Administrators
519526
foreach ($this->Administrators() as $member) {

0 commit comments

Comments
 (0)