Skip to content

Various changes so we can behat test in the react admin#251

Merged
emteknetnz merged 3 commits intosilverstripe:2from
creative-commoners:pulls/2/more
Dec 8, 2025
Merged

Various changes so we can behat test in the react admin#251
emteknetnz merged 3 commits intosilverstripe:2from
creative-commoners:pulls/2/more

Conversation

@GuySartorelli
Copy link
Member

Multiple commits:

  1. FIX Allow dropdown fields to overflow past form
    Needed so the dropdown options are visible without scrolling
  2. ENH Provide permissions for react admin
    Needed so we can access this section without "and I am logged in as ADMIN"
  3. FIX Allow AJAX requests spawned by form fields in react form
    Needed to update the child fields on change

Issue

If the form wasn't taking up the entire vertical space, you'd have to scroll even though there's clearly plenty more space to overflow.
This is needed for behat tests
Comment on lines +74 to +89
public function providePermissions()
{
$code = static::getRequiredPermissions();
$title = LeftAndMain::menu_title(static::class);
return [
$code => [
// Item in permission selection identifying the admin section. Example: Access to 'Files & Images'
'name' => _t(
static::class . '.ACCESS',
"Access to '{title}' section",
['title' => $title]
),
'category' => _t(static::class . '.CMS_ACCESS_CATEGORY', 'CMS Access')
]
];
}
Copy link
Member Author

@GuySartorelli GuySartorelli Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically a straight copy/paste from LeftAndMain which handles this for model admins

@emteknetnz emteknetnz merged commit 6a1f23e into silverstripe:2 Dec 8, 2025
2 checks passed
@emteknetnz emteknetnz deleted the pulls/2/more branch December 8, 2025 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants