You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using drag & drop in widget zone, content type restrictions are not applied.
Reproduction
Prepare:
Create content type C1 with flow part, that allows only widget A
Create widget A with flow part, that allows widget B
Create random widget B
Action:
Create content item of type C1
Add widget A to content item of type C1
Add widget B to widget A flow
When you drag widget B, you can drop it into flow of content type C1
In this phase, you can still drop it back to widget A's flow. But when you publish page, you will get message that widget has no matching content type definition and that it will be lost after publish.
This can be fixed by allowing widget B at content type C1's flow, but that may require admin to fix this.
Expected
If drop target (flow) is restricted, it should not be possible to drop widget of restricted type into it.
The text was updated successfully, but these errors were encountered:
I think user has to be able to move widget back into correct place - so it should not be droppable to restricted zone or it should be visible even if it is restricted.. Because now it completely disappears from UI, when he drops it into flow with restriction and saves page.
Maybe server side before saving would be enough - info that he should move widget back before save.
MikeKry
pushed a commit
to MikeKry/OrchardCore
that referenced
this issue
Jan 29, 2025
Describe the bug
When using drag & drop in widget zone, content type restrictions are not applied.
Reproduction
Prepare:
Action:
Expected
If drop target (flow) is restricted, it should not be possible to drop widget of restricted type into it.
The text was updated successfully, but these errors were encountered: