mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 574 forks source link

Some problems on menu creating & updating #348

Open hogan1117 opened 7 years ago

hogan1117 commented 7 years ago

hi~ I use yii-admin vision 2.7.

When I set the parent of the menu, there are some troubles. When I create a menu, I can not set the parent name. The parent name can pass the validation but will not write to the database. The result in the view "parent name" shows not set . And I can not update the "parent name" neither which also shows not set in result. If I want to set the "patent name", I only can write to the database manually.

Is this a bug? Or maybe I make some mistakes on setting?

LangSY commented 6 years ago

I also had the same problem

zhaodafei commented 6 years ago

I also had the same problem

SpiersZ commented 6 years ago

I also had the same problem

shulinqian commented 6 years ago

这个是jquery版本引起的bug, jquery-ui里面的autocomplete,在yii2默认jquery版本使用会报错。导致parent_id无法被赋值,所有需要选择的输入框都会有问题。 把jquery版本降下就可以了,或者等待官方升级吧。

Jooseph commented 6 years ago

jQuery version problem. The latest version yii2 use jQuery3. You need to downgrade jQuery 3 to jQuery 2.

composer.json

"require": {
    "bower-asset/jquery": "2.2.*@stable",
}