?
avatar Denitz
Denitz
13 Mar 2019

Steps to reproduce the issue

Use media field in subform.

Expected result

Works correctly on existing and new rows.

Actual result

Javascript error.

TypeError: this.querySelector(...).open is not a function
joomla-field-media.js:244:45

System information (as much as possible)

Joomla 4 alpha8

avatar Denitz Denitz - open - 13 Mar 2019
avatar joomla-cms-bot joomla-cms-bot - change - 13 Mar 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Mar 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Mar 2019
Status New Discussion
avatar puneeth2001
puneeth2001 - comment - 13 Mar 2019

@Denitz I could not reproduce the issue can you help me how.

avatar Denitz
Denitz - comment - 13 Mar 2019

@puneeth2001

article.xml.txt

Replace /administrator/components/com_content/forms/article.xml with attached file (rename to .xml), it adds the code:

			

<field
					name="media_gallery"
					type="subform"
					multiple="true"
					layout="joomla.form.field.subform.repeatable-table"
					label="Gallery"
			>
				<form>
					<field name="path" type="media" required="true"
						   label="Image" />
				</form>
			</field>

Edit article and see Gallery field in Options, try to add items and select images.

avatar puneeth2001
puneeth2001 - comment - 13 Mar 2019

ok I will try it.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Mar 2019

@puneeth2001 any Update?

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Mar 2019
Status Discussion Information Required
avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Mar 2019
Category com_fields
avatar puneeth2001
puneeth2001 - comment - 22 Mar 2019

not yet, working on it.

avatar joomla-cms-bot joomla-cms-bot - change - 26 Mar 2019
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2019-03-26 19:38:43
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 26 Mar 2019
avatar Quy Quy - change - 26 Mar 2019
Closed_By joomla-cms-bot Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 26 Mar 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/24179

avatar Quy
Quy - comment - 26 Mar 2019

Please test PR #24362


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

avatar RomanaBW
RomanaBW - comment - 14 Oct 2019

Should this issue be reopened? It works with single field (multiple="false"), but multiple="true" throws the same error on alpha11

Add a Comment

Login with GitHub to post a comment