Skip to content
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

Duplicate Widgets #44

Closed
AncientGrief opened this issue Mar 18, 2016 · 0 comments
Closed

Duplicate Widgets #44

AncientGrief opened this issue Mar 18, 2016 · 0 comments

Comments

@AncientGrief
Copy link

I created a theme with a widget for the desktop and mobile menu (responsive @ media CSS).
Inside the admin panel they're duplicated (same ZoneName).

Adding a widget to WidgetZone1 will affect both (as expected)...

To fix this, maybe add this line to WidgetsVM.cs:
if (WidgetZones.Exists(x => x.Id == zone.Id)) continue;
right after foreach (XmlNode node in widgets.ChildNodes)

I would create a pull request, but my forked repo is 4 commits ahead and I donno how to create a PR for a single commit ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants