MDL-69667 competencies: fix competencies count always 0 in frameworks.
authorcomete-upn <logicielslibres@liste.parisnanterre.fr>
Tue, 15 Sep 2020 06:37:34 +0000 (08:37 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 21 Sep 2020 21:19:52 +0000 (23:19 +0200)
competency/classes/external/competency_framework_exporter.php

index be279e7..9f0c2a1 100644 (file)
@@ -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;
         }