? ? Pending

User tests: Successful: Unsuccessful:

avatar ggppdk
ggppdk
30 Sep 2017

Pull Request for Issue #17974
This is a rather minor issue, but it looks like easy to fix

Summary of Changes

The category filter (like other filters) in backend articles manager was made multi-value
but there is code in 2 (maybe more) places that assumes that filter is single value

In new article (new record) forms we have

  • fields helper trying to load fields of the filtered category
  • the category selector of the form trying to auto-select the filtered category

Solution just if posted category id is an array , then use the first category out of the categories

Testing Instructions

  1. In global configuration set error reporting to maximum
  2. In article manager select 1 or more categories for the filter,
  3. Listing reloads
  4. Now select new article to open new article form

Expected result

  • No notices printed
  • Custom fields of first category (of categories fillter) are loaded
  • Category selector auto selects the first category (of categories fillter)

Actual result

Notices printed, form loads as without any category selected, and 'all categories' fields are shown

Documentation Changes Required

None

avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2017
Category Administration com_categories com_fields
avatar ggppdk ggppdk - open - 30 Sep 2017
avatar ggppdk ggppdk - change - 30 Sep 2017
Status New Pending
avatar ggppdk ggppdk - change - 30 Sep 2017
The description was changed
avatar ggppdk ggppdk - edited - 30 Sep 2017
avatar ggppdk ggppdk - change - 30 Sep 2017
The description was changed
avatar ggppdk ggppdk - edited - 30 Sep 2017
avatar ggppdk ggppdk - change - 30 Sep 2017
Labels Added: ?
avatar degobbis degobbis - test_item - 1 Oct 2017 - Tested successfully
avatar degobbis
degobbis - comment - 1 Oct 2017

I have tested this item successfully on bb13da5


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

avatar infograf768 infograf768 - test_item - 1 Oct 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 1 Oct 2017

I have tested this item successfully on bb13da5

?

That was really bothering me.

Hope we can get this in last minute 3.8.1


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

avatar infograf768 infograf768 - change - 1 Oct 2017
Milestone Added:
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 1 Oct 2017

RTC

@mbabker
I know RC1 is out, but this one is real easy and was badly needed. Please get in 3.8.1 release.


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

avatar ggppdk ggppdk - change - 1 Oct 2017
Labels Added: ?
avatar ggppdk
ggppdk - comment - 1 Oct 2017

I added typecast to integer, it did not exist in previous code,
instead the typecast was done later when using in SQL query,

i think it is good to add it,
since code never check for other values like empty string ''
nothing should be changed in behaviour

avatar degobbis
degobbis - comment - 1 Oct 2017

@ggppdk Is there other changes that you will make? So I will wait befor re testing.


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

avatar ggppdk
ggppdk - comment - 1 Oct 2017

@degobbis

No other changes

avatar ggppdk
ggppdk - comment - 1 Oct 2017

@infograf768 @degobbis

Also please test PR #18179

It is related to categories filter also,
and i think it is a bigger / more common UX problem
(J3.8.0 can no longer list sub-category articles when category filter is active)

avatar degobbis degobbis - test_item - 1 Oct 2017 - Tested successfully
avatar degobbis
degobbis - comment - 1 Oct 2017

I have tested this item successfully on af63062

thanks


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

avatar infograf768 infograf768 - test_item - 1 Oct 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 1 Oct 2017

I have tested this item successfully on af63062


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Oct 2017

RTC after two successful tests.

avatar mbabker mbabker - change - 1 Oct 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-10-01 14:51:11
Closed_By mbabker
avatar mbabker mbabker - close - 1 Oct 2017
avatar mbabker mbabker - merge - 1 Oct 2017

Add a Comment

Login with GitHub to post a comment