?
avatar n9iels
n9iels
9 Dec 2016

Steps to reproduce the issue

  1. Create a subform field with a calendar, see example code below
  2. Load the page, the following alert appears:
    image

subform.xml

<?xml version="1.0" encoding="UTF-8"?>
<form>
		<field
				name="date"
				type="calendar"
				label="JDATE"
				format="%d-%m-%Y"
				filter="user_utc"
		/>
</form>

Joomla! field (assuming we use mod_custom)

<field
		name="my-field"
                type="subform"
                formsource="modules/mod_custom/forms/subform.xml"
                multiple="true"
                min="1"
                layout="joomla.form.field.subform.repeatable-table"
                label="my subform field"
/>

Expected result

The calendar field is load after the subform field. So the calendar is working.

Actual result

The Calendar setup is load before the subformfield, so the alert that the field can't be found is triggered. When click on the "oke" button the subform is load and the calendar field is working.

System information (as much as possible)

Joomla! 3.6.4
Latest version of Google Chrome

Additional comments

Why do we even trigger a alert? Why not just a simple console.log?

avatar n9iels n9iels - open - 9 Dec 2016
avatar joomla-cms-bot joomla-cms-bot - change - 9 Dec 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Dec 2016
avatar n9iels n9iels - change - 9 Dec 2016
The description was changed
avatar n9iels n9iels - edited - 9 Dec 2016
avatar Fedik
Fedik - comment - 9 Dec 2016

the calendar field from 3.6.4 does not made to work in the subform field,
a new calendar field in 3.7.x by @dgt41 should be fine, in theory

avatar brianteeman brianteeman - change - 9 Dec 2016
Status New Known Issue
Closed_Date 0000-00-00 00:00:00 2016-12-09 12:58:21
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 9 Dec 2016

I am going to close this here. Thanks for the report but as stated above the current calendar field wont work and as of 3.7 we have a completely different calendar field


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

avatar brianteeman brianteeman - close - 9 Dec 2016

Add a Comment

Login with GitHub to post a comment