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

[4.0] Fix for AccessibleMediaField #29840

Merged
merged 6 commits into from
Jul 1, 2020
Merged

Conversation

astridx
Copy link
Contributor

@astridx astridx commented Jun 29, 2020

Pull Request for Issue # #29825.

Summary of Changes

If the accessiblemedia field within in a subfield, value is an object stdClass. I extended the check for this. Also, I added the unit tests for the field and do not use $field->apivalueany more because the name is misleading and it is not possible in a subfield custom field.

Testing Instructions

  1. Please test like explained here: [4.0] Media fields accessibility - second try #27712

  2. Please also check whether the media custom field can be used within a subform custom field. Note: If you insert the media custom field in a subform custom field, you can only select (when editing the article) an image file after you have saved the article. This issue is not related to this PR. Please see [4.0] TypeError: this.querySelector(...).open is not a functionjoomla-field-media.js:244:45 #26711.

  3. Check also the rendering in the front end for the custom field of type media and subfield incluing media field.

Documentation Changes Required

Yes

@Quy
Copy link
Contributor

Quy commented Jun 30, 2020

I have tested this item ✅ successfully on 62c45d2


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

@wilsonge
Copy link
Contributor

wilsonge commented Jul 1, 2020

The API Value allows you to override the value returned by the API application. Nothing more.

@wilsonge wilsonge merged commit f415619 into joomla:4.0-dev Jul 1, 2020
@wilsonge
Copy link
Contributor

wilsonge commented Jul 1, 2020

Thanks!

@wilsonge wilsonge added this to the Joomla 4.0 milestone Jul 1, 2020
@astridx astridx deleted the amediafix branch August 9, 2020 12:26
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants