Fix to get config in Absence page
This commit is contained in:
parent
b1260c72e2
commit
6aea33d65a
1 changed files with 5 additions and 3 deletions
|
@ -13,9 +13,10 @@ class AbsencesAction extends YesWikiAction
|
||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$formId = $this->params->get('meeo_formId');
|
$meeo_config = $this->params->get('meeo');
|
||||||
$eleveIdentifier = $this->params->get('meeo_eleveIdentifier');
|
$formId = $meeo_config['absences']['formId'];
|
||||||
$groupeEE = $this->params->get('meeo_groupeEE');
|
$eleveIdentifier = 'listefiche'.$meeo_config['elevesFormId'];
|
||||||
|
$groupeEE = $meeo_config['groupeEE'];
|
||||||
|
|
||||||
$entryManager = $this->getService(EntryManager::class);
|
$entryManager = $this->getService(EntryManager::class);
|
||||||
$userManager = $this->getService(UserManager::class);
|
$userManager = $this->getService(UserManager::class);
|
||||||
|
@ -23,6 +24,7 @@ class AbsencesAction extends YesWikiAction
|
||||||
if ( $userManager->isInGroup($groupeEE, admincheck: false) ) {
|
if ( $userManager->isInGroup($groupeEE, admincheck: false) ) {
|
||||||
$entries = $entryManager->search(['formsIds' => $formId]);
|
$entries = $entryManager->search(['formsIds' => $formId]);
|
||||||
$grouped_entries = [];
|
$grouped_entries = [];
|
||||||
|
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
$identifier = $entry[$eleveIdentifier];
|
$identifier = $entry[$eleveIdentifier];
|
||||||
$nom = $entryManager->getOne($identifier)['bf_nom'];
|
$nom = $entryManager->getOne($identifier)['bf_nom'];
|
||||||
|
|
Loading…
Reference in a new issue