Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Fixed bug where component behaviors could be double-attached #17

Merged
merged 1 commit into from Aug 28, 2018

Conversation

brandonkelly
Copy link
Contributor

@brandonkelly brandonkelly commented Aug 28, 2018

This fixes a 3.0 bug introduced in yiisoft/yii2#16430.

If a component's behaviors() method returns any behaviors without a name, then cloning it would result in the behavior getting attached twice.

Q A
Is bugfix? yes
New feature? no
Breaks BC? no
Tests pass? yes

This fixes a 3.0 bug introduced in yiisoft/yii2#16430.

If a component's behaviors() method returns any behaviors without a name, then cloning it would result in the behavior getting attached twice.
@hiqsol
Copy link
Member

hiqsol commented Aug 28, 2018

Thank you!

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

Successfully merging this pull request may close these issues.

None yet

2 participants