Skip to content

[4.2] Fix none empty string validation for MediaItem#39476

Merged
roland-d merged 2 commits intojoomla:4.2-devfrom
joomdonation:fix_media_item_validation
Dec 28, 2022
Merged

[4.2] Fix none empty string validation for MediaItem#39476
roland-d merged 2 commits intojoomla:4.2-devfrom
joomdonation:fix_media_item_validation

Conversation

@joomdonation
Copy link
Copy Markdown
Contributor

Pull Request for Issue #37242.

Summary of Changes

This simple PR fixes media manager broken when there is folder with name 0 (zero) managed by media manager.

Testing Instructions

  1. Create a folder with name 0 (zero character) under images folder (this folder must be created outside media manager)
  2. Access to Content -> Media and try to navigate to that folder

Actual result BEFORE applying this Pull Request

You get error: Property 'name' of argument 'item' of event onFetchMediaItems has a wrong item. Valid: non empty string

Expected result AFTER applying this Pull Request

No error, media manager works properly

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed

@alikon
Copy link
Copy Markdown
Contributor

alikon commented Dec 23, 2022

I have tested this item ✅ successfully on 1b4f3c6


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39476.

1 similar comment
@Quy
Copy link
Copy Markdown
Contributor

Quy commented Dec 23, 2022

I have tested this item ✅ successfully on 1b4f3c6


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39476.

@Quy
Copy link
Copy Markdown
Contributor

Quy commented Dec 23, 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39476.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 23, 2022
@roland-d roland-d merged commit 694622e into joomla:4.2-dev Dec 28, 2022
@roland-d
Copy link
Copy Markdown
Contributor

Thank you

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Dec 28, 2022
@roland-d roland-d added this to the Joomla! 4.2.7 milestone Dec 28, 2022
@joomdonation joomdonation deleted the fix_media_item_validation branch December 29, 2022 00:23
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.

5 participants