New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating article with filtered category #17974
Comments
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 |
@laoneo |
The problem is not fields itself, the issue is that JForm->getAttribute is returning an array instead of a string as it was before. |
it always should not first filtered category should be pre-configured for new articles. |
as i tested it didnt give me as selected filter order and sometimes gave me the highest categorize id when new article added. |
test/comment #18090 |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17974 |
closed as having Pull Request #18090 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17974. |
Does that pr fix all the issues here? |
not sure |
@franz-wohlkoenig Please reopen. |
Set to "open" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17974 |
reopened as stated above. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17974. |
I have made PR #18176 |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17974 |
closed as having Pull Request #18176 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17974. |
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.
The text was updated successfully, but these errors were encountered: