-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix article save2copy not unpublished #37354
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
Conversation
Making things clearer :)
Making things clearer
Improved
Removed br spaces and adjusted the link href to the language specific doc.
Inserted /Special:MyLanguage/ also into the link anchor. Was unsure about that before.
Co-authored-by: Stefan Wendhausen <[email protected]>
finally...
Like modules and menu items, also articles should be unpublished on save2copy.
|
I have tested this item ✅ successfully on b17c1c5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37354. |
|
I have tested this item ✅ successfully on b17c1c5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37354. |
administrator/components/com_content/src/Model/ArticleModel.php
Outdated
Show resolved
Hide resolved
administrator/components/com_content/src/Model/ArticleModel.php
Outdated
Show resolved
Hide resolved
|
I am a little unsure that this is the correct fix. It would be useful to find out when/where the j3 behaviour was changed. Was there a reason for it, was anything else changed at the same time. There may be more needed than just this one line. |
Yes, I have the same feeling, but I'm at work so can't investigate. I hope someone else can step in if necessary. |
|
Well there is no rush to merge it ;) Thinking aloud but it might be something to do with the creation of multilingual associated articles |
Created multilingual associated articles are still published initially, just tested that. |
|
Perhaps @bembelimen can shed some light in here as it can relate to the workflow changes. |
Co-authored-by: Richard Fath <[email protected]>
Co-authored-by: Richard Fath <[email protected]>
I think that could be the point. When workflow is enabled, it should use the default stage, which might be different. Maybe we should look up in the code how it's done for batch copying? |
|
Workflow didn't change the behaviour... I wanted to do so, but there was too much restistant and for me it was not worth the time to fight for it...so I think copy should always save unpublished, but that is just my opinion. |
|
Well something changed it - weird |
|
This pull request has automatically rebased to 4.2-dev. |
|
This pull requests has been automatically converted to the PSR-12 coding standard. |
|
Closing in favor of #38810 as it has more in-depth discussion. Thank you for your contribution. |
Pull Request for Issue #37351 .
Summary of Changes
Testing Instructions
Save as Copy
Actual result BEFORE applying this Pull Request
Article is published.
Expected result AFTER applying this Pull Request
Article shoud be unpublished like in J3 before.
Documentation Changes Required
None.
Fixes #37351