J3 Issue ?
avatar Globulopolis
Globulopolis
10 Apr 2017

Steps to reproduce the issue

Add custom form

<?xml version="1.0" encoding="utf-8"?>
<form>
	<fields name="name">
		<fieldset name="edit">
			<field name="rules" type="rules" label="JGLOBAL_ACTION_PERMISSIONS_LABEL" class="inputbox" filter="rules"
				   component="com_my" section="name" validate="rules"/>
		</fieldset>
	</fields>
</form>

Load form from model via

public function getForm($data = array(), $loadData = true)
{
	$form = $this->loadForm('com_my.name', 'name', array('control' => 'form', 'load_data' => $loadData));

	if (empty($form))
	{
		return false;
	}

	return $form;
}

On rules matrix change selected value.

Expected result

Ajax request to Com-Config Application Controller

Actual result

Javascript error in console.
clipboard03

System information (as much as possible)

Joomla 3.6.4
Firefox 52

Additional comments

Problem in hard-coded field names for title and rules. Of course if we're planing to use rules field in custom component w/o title field or with different form name controls we will got same error.

avatar Globulopolis Globulopolis - open - 10 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 10 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Apr 2017
Category Fields
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Apr 2017

do you have this Issue on latest Staging too?

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Apr 2017
Status New Information Required
avatar zero-24
zero-24 - comment - 22 Apr 2017

@Globulopolis can you think of a patch that handle both cases and send it against the staging branch than?

avatar Globulopolis
Globulopolis - comment - 23 Apr 2017

@zero-24 my knowledge in javascript very bad.

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 May 2017
Status Information Required Discussion
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 18 Aug 2018

Closed as expected behaviour

avatar brianteeman brianteeman - change - 18 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 17:17:36
Closed_By brianteeman
avatar brianteeman brianteeman - close - 18 Aug 2018

Add a Comment

Login with GitHub to post a comment