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

Fixed alias plugin preventing operations on the original plugin #5486

Merged

Conversation

vxsx
Copy link
Contributor

@vxsx vxsx commented Jul 1, 2016

When alias plugin is initialised it also initialises it's children.
If the alias plugin is on the same page as the plugin that is being
aliased this leads to the event handlers bound twice. So if you
try to toggle context menu or nested plugins in structure mode the
operation would be ran twice and would technically fail. This
commit stops initialisation of the plugin that already has been
initialised.

Essentially this is a backport of some of the changes from #5429
Ref: #5382

@vxsx vxsx added the forwardport Commits are being forward ported label Jul 1, 2016
@vxsx vxsx added this to the 3.3.1 milestone Jul 1, 2016
@FinalAngel
Copy link
Member

LGTM

@coveralls
Copy link

coveralls commented Jul 1, 2016

Coverage Status

Coverage increased (+0.003%) to 88.771% when pulling 1b06f24 on vxsx:bugfix/aliased-plugin-double-init into e6e7177 on divio:release/3.3.x.

@vxsx vxsx force-pushed the bugfix/aliased-plugin-double-init branch from 1b06f24 to 17214e1 Compare July 4, 2016 09:17
When alias plugin is initialised it also initialises it's children.
If the alias plugin is on the same page as the plugin that is being
aliased this leads to the event handlers bound twice. So if you
try to toggle context menu or nested plugins in structure mode the
operation would be ran twice and would technically fail. This
commit stops initialisation of the plugin that already has been
initialised.

Essentially this is a backport of changes from django-cms#5429
Ref: django-cms#5382
@coveralls
Copy link

coveralls commented Jul 4, 2016

Coverage Status

Coverage increased (+0.003%) to 88.758% when pulling 17214e1 on vxsx:bugfix/aliased-plugin-double-init into 6957537 on divio:release/3.3.x.

@vxsx vxsx merged commit dbf8eb3 into django-cms:release/3.3.x Jul 5, 2016
@vxsx vxsx deleted the bugfix/aliased-plugin-double-init branch July 5, 2016 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: frontend forwardport Commits are being forward ported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants