diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2025-07-18 14:36:48 +0200 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2025-07-18 14:36:48 +0200 |
| commit | 7f48c7fbe034ff47423b145015838454be3d6ddd (patch) | |
| tree | 0aa78d236f3180903199d71c2a6c36223cb2ebf1 /lib/models/Institute.php | |
| parent | 2a3e3ecc72417a7bffbbc572d69282fae571668b (diff) | |
re #5741 : sync tools_activated table according to sem classesissue-5741
Diffstat (limited to 'lib/models/Institute.php')
| -rw-r--r-- | lib/models/Institute.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/models/Institute.php b/lib/models/Institute.php index fd6a155..19c2f7f 100644 --- a/lib/models/Institute.php +++ b/lib/models/Institute.php @@ -138,6 +138,11 @@ class Institute extends SimpleORMap implements Range $config['additional_fields']['all_status_groups']['get'] = function ($institute) { return Statusgruppen::findAllByRangeId($institute->id, true); }; + $config['additional_fields']['context_tools'] = [ + 'get' => function (Institute $institute) { + return $institute->tools; + } + ]; $config['i18n_fields'] = ['name', 'url']; $config['registered_callbacks']['after_create'][] = 'setDefaultTools'; |
