AngularJS module crmUi has an unstated dependency on ui.utils
Steps to reproduce
- Create an extension with a custom base page for an AngularJS app.
- Put this code in your controller:
<div crm-ui-tab-set>
<div crm-ui-tab crm-title="ts('Ruh')" id="tab-ruh">...</div>
<div crm-ui-tab crm-title="ts('Roh')" id="tab-roh">...</div>
</div>
- Note that the expected tabbed display doesn't render.
Note also
The template for the crmUiTabset
directive expects the ui-jq
directive, provided by the ui.utils
module, to be available.
Workaround
To work around this problem, extensions may explicitly require the ui.utils
module in addition to crmUi
, e.g.:
// myextension.ang.php
return array(
...
'requires' => array(
'crmUi',
'ui.utils',
),
...
);
Although there is an easy workaround, the fix is also easy, so we should fix this. Pull request forthcoming.