Skip to content

Commit 144ee0e

Browse files
committed
Relation type within list view will not be recognized if you change list or filter by date #1243
1 parent 9b3ef10 commit 144ee0e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adm_program/modules/groups-roles/lists_show.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* date_to: Value for the end date of the date range filter (default: current date)
1515
* list_uuid: UUID of the list configuration that should be shown.
1616
* If id is null then the default list of the role will be shown.
17-
* rol_ids: Id of the role or an integer array of all role ids whose members should be shown
17+
* rol_ids: ID of the role or an integer array of all role ids whose members should be shown
18+
* urt_ids: ID of the relation type or an integer array of all relation types ids whose members should be shown
1819
* show_former_members: 0 - (Default) show members of role that are active within the selected date range
1920
* 1 - show only former members of the role
2021
***********************************************************************************************
@@ -404,6 +405,7 @@
404405
$form->addInput('date_to', $gL10n->get('SYS_ROLE_MEMBERSHIP_TO'), $dateTo, array('type' => 'date', 'maxLength' => 10));
405406
$form->addInput('list_uuid', '', $getListUuid, array('property' => HtmlForm::FIELD_HIDDEN));
406407
$form->addInput('rol_ids', '', $getRoleIds, array('property' => HtmlForm::FIELD_HIDDEN));
408+
$form->addInput('urt_ids', '', $getRelationTypeIds, array('property' => HtmlForm::FIELD_HIDDEN));
407409
$form->addCheckbox('show_former_members', $gL10n->get('SYS_SHOW_FORMER_MEMBERS_ONLY'), $getShowFormerMembers);
408410
$form->addSubmitButton('btn_send', $gL10n->get('SYS_OK'));
409411
}
@@ -421,7 +423,7 @@
421423
if ($(this).val() === "mylist") {
422424
self.location.href = "' . SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_MODULES . '/groups-roles/mylist.php', array('rol_ids' => $getRoleIds)) . '";
423425
} else {
424-
self.location.href = "' . SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_MODULES . '/groups-roles/lists_show.php', array('mode' => 'html', 'rol_ids' => $getRoleIds, 'show_former_members' => $getShowFormerMembers, 'date_from' => $getDateFrom, 'date_to' => $getDateTo)) . '&list_uuid=" + $(this).val();
426+
self.location.href = "' . SecurityUtils::encodeUrl(ADMIDIO_URL . FOLDER_MODULES . '/groups-roles/lists_show.php', array('mode' => 'html', 'rol_ids' => $getRoleIds, 'urt_ids' => $getRelationTypeIds, 'show_former_members' => $getShowFormerMembers, 'date_from' => $getDateFrom, 'date_to' => $getDateTo)) . '&list_uuid=" + $(this).val();
425427
}
426428
});
427429

0 commit comments

Comments
 (0)