mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-69667 competencies: fix competencies count always 0 in frameworks.
This commit is contained in:
parent
ccd4ef8ddd
commit
94160c9ad0
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class competency_framework_exporter extends \core\external\persistent_exporter {
|
|||
$context = $this->persistent->get_context();
|
||||
$competenciescount = 0;
|
||||
try {
|
||||
api::count_competencies($filters);
|
||||
$competenciescount = api::count_competencies($filters);
|
||||
} catch (\required_capability_exception $re) {
|
||||
$competenciescount = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue