- Issue created by @smurrayatwork
- Assigned to abhishek_virasat
- Issue was unassigned.
- 🇺🇸United States smurrayatwork
Adding new patch to actually use the no_edit_on_create parameter when set.
While working on the creation of Behat tests for a Media Library field, trying to open the Media browser by clicking on "Add media" causes a warning in media_library_media_modify_form_media_library_add_form_alter
to trigger with "no_edit_on_create" not being set on the opener parameters array for media_library_state. This is blocking some behat tests from passing.
Change
if ($media_library_state->getOpenerParameters()['no_edit_on_create']) {
to
if (isset($media_library_state->getOpenerParameters()['no_edit_on_create'])) {
to check to see if the array actually has the key set.
None.
None.
None.
Active
1.0
Code
Adding new patch to actually use the no_edit_on_create parameter when set.