OmgDef / yii2-multilingual-behavior

Yii2 port of the yii-multilingual-behavior.
146 stars 60 forks source link

EVENT_BEFORE_VALIDATE of a behavior attached to the PostLang Model will not trigger. #14

Closed tracid closed 9 years ago

tracid commented 9 years ago

Hi,

is it by design, a bug, or am i doing something wrong? I have a Problem adding the SluggableBehavior to my PostLang Model. The new Slug wont be saved in this case. But with a Behavior made with EVENT_BEFORE_UPDATE, everything works fine.

The Post Model is validated before saving...

Thanks!

OmgDef commented 9 years ago

@tracid Hi! Thanks for reporting. I fixed this issue in master. Don't forget add slug attribute to the list of multilingual attributes

tracid commented 9 years ago

@OmgDef Hi, it works fine now! Thanks for the fast fix, i really appreciate the Script! :)