? ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
8 Nov 2020

Pull Request for Issue #31352 .

Summary of Changes

This changes <option value="">JALL</option> to <option value="0">JALL</option>.

>
<option value="">JALL</option>
<option value="-1">JNONE</option>

As it casts to 0 anyway, that should work fine.

$cats = isset($data['assigned_cat_ids']) ? (array) $data['assigned_cat_ids'] : array();
$cats = ArrayHelper::toInteger($cats);
$assignedCatIds = array();
foreach ($cats as $cat)
{
// If we have found the 'JNONE' category, remove all other from the result and break.
if ($cat == '-1')
{
$assignedCatIds = array('-1');
break;
}
if ($cat)
{
$assignedCatIds[] = $cat;
}
}

Also I have fixed placeholder text for a "multiple category" input.

Testing Instructions

Please look for detail #31352

Actual result BEFORE applying this Pull Request

you cannot select All

Expected result AFTER applying this Pull Request

you can select All

Documentation Changes Required

none

avatar Fedik Fedik - open - 8 Nov 2020
avatar Fedik Fedik - change - 8 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Nov 2020
Category Administration com_categories com_fields
avatar ChristineWk ChristineWk - test_item - 8 Nov 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 8 Nov 2020

I have tested this item successfully on 1075182


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

avatar infograf768 infograf768 - test_item - 8 Nov 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 8 Nov 2020

I have tested this item successfully on 1075182


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

avatar infograf768
infograf768 - comment - 8 Nov 2020

Result:

Screen Shot 2020-11-08 at 18 32 13

avatar richard67 richard67 - change - 8 Nov 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 8 Nov 2020

RTC


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

avatar richard67 richard67 - change - 8 Nov 2020
Labels Added: ? ?
avatar chmst chmst - change - 9 Nov 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-11-09 15:25:19
Closed_By chmst
Labels
avatar chmst chmst - close - 9 Nov 2020
avatar chmst chmst - merge - 9 Nov 2020

Add a Comment

Login with GitHub to post a comment