-
-
Notifications
You must be signed in to change notification settings - Fork 771
Fix new pages remain in Draft when Versioning is enabled and Workflow is disabled #6836
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes an issue where new pages remained in Draft status when Versioning was enabled but Workflow was disabled. The fix ensures pages are created with the correct published state for all combinations of Versioning and Workflow settings, particularly addressing the broken case where Versioning=On and Workflow=Off.
Key changes:
- Adds logic to hide workflow menu items (Complete/Discard) when Direct Publish workflow is active, reducing UI confusion
- Refactors workflow information display in PersonaBar to show more accurate state information even when no explicit state is assigned
- Fixes portal ID retrieval in WorkflowHelper to use the tab's portal ID instead of current portal settings
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| Dnn.AdminExperience/EditBar/Dnn.EditBar.UI/Items/WorkflowBaseMenuItem.cs | Adds IsDirectPublishWorkflow property to identify when Direct Publish workflow is active |
| Dnn.AdminExperience/EditBar/Dnn.EditBar.UI/Items/DiscardWorkflowMenu.cs | Updates visibility logic to hide discard menu when Direct Publish workflow is active |
| Dnn.AdminExperience/EditBar/Dnn.EditBar.UI/Items/CompleteWorkflowMenu.cs | Updates visibility logic to hide complete menu when Direct Publish workflow is active |
| Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Pages/WorkflowHelper.cs | Fixes potential null reference by using tab's PortalID instead of PortalSettings.Current |
| Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Pages/PagesControllerImpl.cs | Refactors workflow handling to determine StateName and WorkflowName with proper null handling when StateID is not set |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Pages/PagesControllerImpl.cs
Outdated
Show resolved
Hide resolved
Dnn.AdminExperience/EditBar/Dnn.EditBar.UI/Items/DiscardWorkflowMenu.cs
Outdated
Show resolved
Hide resolved
Dnn.AdminExperience/EditBar/Dnn.EditBar.UI/Items/CompleteWorkflowMenu.cs
Outdated
Show resolved
Hide resolved
|
@tvatavuk Can you look at the merge issue here? |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
tvatavuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge issue resolved
valadas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@tvatavuk looks like there are a couple of build errors. |
|
Awesome! Thanks a lot @tvatavuk |


Fixes #6810
Summary
New pages behave correctly for all combinations of Versioning and Workflow settings:
TODO
Specifically, auto-publish pages that were incorrectly created as Draft when: