? ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
18 Jan 2020

Summary of Changes

Fix regression that not allow to use a custom filter with subform field, was introduced by one of previous update.

Testing Instructions

Apply patch, create a subform field , somwhere in CustomHTML module, with custom filter:

<field name="test_fields" type="subform" label="test_fields" 
filter="FooBar::filterTest" multiple="true" min="1">
  <form>
    <field name="test_field" type="text" label="TESTFIELD1"/>
  </form>
</field>

Add custom filter class, somwhere in bottom of plugins/system/debug/debug.php:

class FooBar
{
	static function filterTest($value)
	{
		JFactory::getApplication()
		 ->enqueueMessage('Filter works: ' . json_encode($value));
		return $value;
	}
}

Then create a Custom module in backed, and try save it.
Look for the message you got

Expected result

You should get 2 message:
Filter works: {"test_fields0":{"test_field":""}}
and
Module saved

Actual result

You get 1 message
Module saved
that means the custom filter was ignored

avatar Fedik Fedik - open - 18 Jan 2020
avatar Fedik Fedik - change - 18 Jan 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jan 2020
Category Libraries
avatar viocassel viocassel - test_item - 19 Jan 2020 - Tested successfully
avatar viocassel
viocassel - comment - 19 Jan 2020

I have tested this item successfully on da9a1bb


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

avatar jwaisner jwaisner - test_item - 21 Jan 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 21 Jan 2020

I have tested this item successfully on da9a1bb


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

avatar Quy Quy - change - 21 Jan 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 21 Jan 2020

RTC


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

avatar wilsonge
wilsonge - comment - 21 Jan 2020

@joomla/security please review this as this addressed a specific vulnerability in the past

avatar zero-24
zero-24 - comment - 21 Jan 2020

@joel-lupfer @SniperSister Any additional input here?

avatar rdeutz rdeutz - change - 3 Feb 2020
Labels Added: ? ?
avatar richard67
richard67 - comment - 16 Feb 2020

@joel-lupfer @SniperSister Any additional input here?

avatar SniperSister
SniperSister - comment - 17 Feb 2020

@richard67 fine for me!

avatar rdeutz rdeutz - change - 20 Feb 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-20 22:38:14
Closed_By rdeutz
avatar rdeutz rdeutz - close - 20 Feb 2020
avatar rdeutz rdeutz - merge - 20 Feb 2020

Add a Comment

Login with GitHub to post a comment