Skip to content

Commit

Permalink
MVC/ModelRelationField type, fix race condition when referring to ano…
Browse files Browse the repository at this point in the history
…ther model section not yet loaded.

Since e4d5daf9 we reuse our model object when not referring to another model, which may not yet been completely initialised when referring to a section further in the xml definition. Moving the load action to actionPostLoadingEvent() should assure we do have the related actions loaded. should fix #2389
  • Loading branch information
AdSchellevis committed May 4, 2018
1 parent 910e1d1 commit 8b5949e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ public function setModel($mdlStructure)
// set internal key for this node based on sources and filter criteria
$this->internalCacheKey = md5(serialize($mdlStructure));
}
}

/**
* load model options when initialized
*/
protected function actionPostLoadingEvent()
{
$this->loadModelOptions();
}

Expand Down

0 comments on commit 8b5949e

Please sign in to comment.