No Code Attached Yet Information Required bug
avatar regularlabs
regularlabs
19 Aug 2021

Create a subform field that includes a media field. And set the 'Repeatable' setting to No.

In an article, select an image in that field and save the article.

The media field disappears from the article edit form.
But the image does show on the frontend in the fields section.

Save the article again and the field re-appears, but the field is now empty.

If you now save the article again (with the field left empty), the field disappears again.
And on the frontend it now displays a broken image (image tag with no src).

avatar regularlabs regularlabs - open - 19 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Aug 2021
avatar drmenzelit
drmenzelit - comment - 29 Dec 2021

@regularlabs can you test again on the last J4 version? Some weeks ago a PR for subforms problems was merged and maybe it solved this problem too

avatar regularlabs
regularlabs - comment - 29 Dec 2021

In current life version of J4?
Things seem to only have gotten worse ?
Now I can't even choose any image vi the media manage popup on any custom fields of type Media.
It only shows folders. Not the files.

avatar drmenzelit
drmenzelit - comment - 29 Dec 2021

I can confirm the issue: the media field dissapears after saving the article.

@Fedik do you maybe have an idea?

avatar brianteeman
brianteeman - comment - 29 Dec 2021

possibly related #32663

avatar Fedik
Fedik - comment - 29 Dec 2021

Works for me (except preview is incorrect):

<field name="field-name2" type="subform" label="SUBFORM">
  <form>
    <field name="name" type="media" label="Media"/>
  </form>
</field>

Screenshot_2021-12-29_17-53-11

avatar drmenzelit
drmenzelit - comment - 29 Dec 2021

@Fedik I have tested on a freshly installed 4.0.6-dev version and the media field dissapears after saving the article

avatar crystalenka
crystalenka - comment - 15 Nov 2022

Is this still a problem? I cannot reproduce in 4.2

avatar Quy Quy - change - 16 Feb 2023
Labels Added: Information Required
avatar Quy Quy - labeled - 16 Feb 2023
avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar Quy
Quy - comment - 7 Mar 2023

@regularlabs Please check again as I cannot reproduce the issue in v4.2.8. Thanks.

avatar regularlabs
regularlabs - comment - 8 Mar 2023

15 months later. Didn't know this was still open. Seems to work for me.

avatar Quy
Quy - comment - 8 Mar 2023

Closing as no longer a bug. Thank you for confirming.

avatar Quy Quy - close - 8 Mar 2023
avatar Quy Quy - change - 8 Mar 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-03-08 16:58:48
Closed_By Quy

Add a Comment

Login with GitHub to post a comment