Skip to content

Commit

Permalink
Merge branch '5.1' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 11, 2023
2 parents cef8c0f + 2ccbbc2 commit 221b698
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,16 @@ public function getSettingsFields()
};
$viewAllGroupsMap = $mapFn(Permission::get_groups_by_permission(['SITETREE_VIEW_ALL', 'ADMIN']));
$editAllGroupsMap = $mapFn(Permission::get_groups_by_permission(['SITETREE_EDIT_ALL', 'ADMIN']));
$membersMap = Member::get()->map('ID', 'Name');

// $membersMap is limited to 100 records specifically so that it does not crash the front-end
// if the website has a large number of Members, which is likely to happen if the website also
// uses the Member table for non-cms public users
// This limit should be removed if the ListboxField front-end component is switched out or
// modified so that it does not load all users at once and instead uses XHR to fetch a subset
// of users based on what the user types in
$membersMap = Member::get()
->limit(100)
->map('ID', 'Name');

$fields = new FieldList(
$rootTab = new TabSet(
Expand Down
1 change: 1 addition & 0 deletions lang/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ fr:
db_Sort: Tri
db_Title: Titre
db_URLSegment: 'Segment d''URL'
db_Version: Version
has_one_Parent: 'Page parente'
many_many_BackLinkTracking: 'Suivi des liens retour'
many_many_ImageTracking: 'Suivi des images'
Expand Down
3 changes: 3 additions & 0 deletions lang/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ nl:
one: '1 pagina link'
other: '{count} pagina links'
SINGULARNAME: 'Pagina link'
has_one_Parent: Bovenliggende
SilverStripe\CMS\Model\SiteTreeLinkTracking:
many_many_LinkTracking: 'Links volgen'
SilverStripe\CMS\Model\VirtualPage:
CHOOSE: 'Gekoppelde pagina'
DESCRIPTION: 'Toont de inhoud van een andere pagina'
Expand Down

0 comments on commit 221b698

Please sign in to comment.