MDL-74497 reportbuilder: Ensure entity report element order is kept

This commit is contained in:
David Matamoros 2022-05-18 13:19:34 +02:00
parent 7a635606e0
commit 63088862b4

View File

@ -64,7 +64,8 @@ class courses extends datasource {
ON {$coursecattablealias}.id = {$coursetablealias}.category"));
// Add all columns/filters/conditions from entities to be available in custom reports.
$this->add_all_from_entities();
$this->add_all_from_entity($coursecatentity->get_entity_name());
$this->add_all_from_entity($courseentity->get_entity_name());
}
/**