diff --git a/classes/reportbuilder/entities/h5pactivity_attempts.php b/classes/reportbuilder/entities/h5pactivity_attempts.php index f2cbd0e..f73cbb3 100644 --- a/classes/reportbuilder/entities/h5pactivity_attempts.php +++ b/classes/reportbuilder/entities/h5pactivity_attempts.php @@ -65,6 +65,10 @@ public function initialise(): base { $this->add_column($column); } + foreach ($this->get_all_filters() as $filter) { + $this->add_filter($filter)->add_condition($filter); + } + return $this; } @@ -209,7 +213,7 @@ protected function get_all_filters(): array { $filters[] = (new filter( select::class, 'success', - new lang_string('outcome', 'local_recompletion'), + new lang_string('outcome', 'h5pactivity'), $this->get_entity_name(), "{$alias}.success" ))