?
avatar Denitz
Denitz
17 Sep 2017

Steps to reproduce the issue

Set error reporting to development
Open articles manager
Filter articles by category
Create new article

Expected result

No errors

Actual result

See PHP notice:

( ! ) Notice: Array to string conversion in \administrator\components\com_categories\models\fields\categoryedit.php on line 281

System information (as much as possible)

Joomla 3.8 RC1

Additional comments

Since we have multiple categories filter, first filtered category should be pre-configured for new articles.

avatar Denitz Denitz - open - 17 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 17 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Sep 2017
Status New Confirmed
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Sep 2017

Confirmed:

bildschirmfoto 2017-09-17 um 16 08 07

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Sep 2017
Category com_categories com_content
avatar alikon
alikon - comment - 22 Sep 2017

undesidered side effect from #17668

make no sense to check if "Allowed to add" on multiple categories since 1 article is related to 1 and only 1 category https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_content/controllers/article.php#L50

avatar infograf768
infograf768 - comment - 23 Sep 2017

@laoneo
As the first Notice concerns the fields, could you have a look?

avatar laoneo
laoneo - comment - 23 Sep 2017

The problem is not fields itself, the issue is that JForm->getAttribute is returning an array instead of a string as it was before.

avatar Shazrina1994
Shazrina1994 - comment - 23 Sep 2017

it always should not first filtered category should be pre-configured for new articles.
as @Denitz said under additional comments want to think of.

avatar Shazrina1994
Shazrina1994 - comment - 23 Sep 2017

as i tested it didnt give me as selected filter order and sometimes gave me the highest categorize id when new article added.

avatar alikon
alikon - comment - 24 Sep 2017

test/comment #18090

avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Sep 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-09-24 10:01:56
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 24 Sep 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 24 Sep 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 24 Sep 2017

closed as having Pull Request #18090


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

avatar laoneo
laoneo - comment - 24 Sep 2017

Does that pr fix all the issues here?

avatar alikon
alikon - comment - 24 Sep 2017

not sure
is a dirty one 😢

avatar Quy
Quy - comment - 30 Sep 2017

@franz-wohlkoenig Please reopen.

avatar joomla-cms-bot joomla-cms-bot - change - 30 Sep 2017
Status Discussion New
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 30 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Sep 2017
Status Closed Discussion
Closed_Date 2017-09-24 10:01:56
Closed_By joomla-cms-bot
avatar joomla-cms-bot
joomla-cms-bot - comment - 30 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Sep 2017

reopened as stated above.


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Sep 2017
Status New Discussion
avatar ggppdk
ggppdk - comment - 30 Sep 2017

I have made PR #18176

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Oct 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-10-01 05:16:15
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 1 Oct 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 1 Oct 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 1 Oct 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Oct 2017

closed as having Pull Request #18176


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

Add a Comment

Login with GitHub to post a comment