Skip to content

Commit

Permalink
Pre-load profile scripts
Browse files Browse the repository at this point in the history
Some sites were reporting issues opening the profile editor, and
this seems to help.
  • Loading branch information
colemanw committed Apr 14, 2021
1 parent db36467 commit 24f9a1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Contactlayout/Page/Angular.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public function run() {
'relationshipTypes' => (array) civicrm_api4('RelationshipType', 'get', ['where' => [['is_active', '=', TRUE]]]),
]);

// For editing profile blocks
CRM_UF_Page_ProfileEditor::registerProfileScripts();

// Bootstrap Angular and set page name.
$loader = new Civi\Angular\AngularLoader();
$loader->setPageName('civicrm/admin/contactlayout');
Expand Down

0 comments on commit 24f9a1f

Please sign in to comment.