Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followup for PR #407 (337 bug with multiple panels) #408

Merged

Conversation

tobias-grasse
Copy link
Contributor

Sorry, I missed two internal calls to HandlesExistingMediaTrait:: fillMediaCustomPropertiesFromRequest which now requires $requestAttribute to find the custom properties on nested forms.

Are there plans to add a test suite? If so, I'd be willing to contribute. https://github.com/joshgaber/NovaUnit might be a good starting point.

Illuminate\Contracts\Validation\Rule was deprecated in laravel/framework v10, should be replaced with ValidationRule once the minimum required version is 10.

Signed-off-by: Tobias Grasse <tg@glancr.de>
Both `addNewMedia` and `addExistingMedia` also call `HandlesExistingMediaTrait::fillMediaCustomPropertiesFromRequest` which requires `$requestAttribute` for nested forms since 079b866

Signed-off-by: Tobias Grasse <tg@glancr.de>
Signed-off-by: Tobias Grasse <tg@glancr.de>
@bkintanar
Copy link
Collaborator

Test cases for the package are always welcome. I'm not the package creator, but only a maintainer of the package at the moment. Ebess has left the package and the package needs some love.

@neyaoz
Copy link

neyaoz commented Aug 23, 2023

We had to roll back the last releases due to this error until you confirm this pull request. Not able to create new media anymore because of the reason that Tobias mentions.

image

Rolling back to v4.1.2 fixes the problem as expected.

@bkintanar bkintanar merged commit 6efa2cf into ebess:master Aug 24, 2023
Gompje pushed a commit to DaktaDeo/advanced-nova-media-library that referenced this pull request Mar 29, 2024
* ebess#337 Add TODO for deprecated interface

Illuminate\Contracts\Validation\Rule was deprecated in laravel/framework v10, should be replaced with ValidationRule once the minimum required version is 10.

Signed-off-by: Tobias Grasse <tg@glancr.de>

* ebess#337 Pass requestAttribute down to media handling functions

Both `addNewMedia` and `addExistingMedia` also call `HandlesExistingMediaTrait::fillMediaCustomPropertiesFromRequest` which requires `$requestAttribute` for nested forms since 079b866

Signed-off-by: Tobias Grasse <tg@glancr.de>

* ebess#337 Formatting, reorder imports, add @throws tag

Signed-off-by: Tobias Grasse <tg@glancr.de>

---------

Signed-off-by: Tobias Grasse <tg@glancr.de>
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.

3 participants