{"action":"closed","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-grid/issues/822","repository_url":"https://api.github.com/repos/kartik-v/yii2-grid","labels_url":"https://api.github.com/repos/kartik-v/yii2-grid/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-grid/issues/822/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-grid/issues/822/events","html_url":"https://github.com/kartik-v/yii2-grid/issues/822","id":358550761,"node_id":"MDU6SXNzdWUzNTg1NTA3NjE=","number":822,"title":"Assets conflict","user":{"login":"s1lver","id":4567634,"node_id":"MDQ6VXNlcjQ1Njc2MzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4567634?v=4","gravatar_id":"","url":"https://api.github.com/users/s1lver","html_url":"https://github.com/s1lver","followers_url":"https://api.github.com/users/s1lver/followers","following_url":"https://api.github.com/users/s1lver/following{/other_user}","gists_url":"https://api.github.com/users/s1lver/gists{/gist_id}","starred_url":"https://api.github.com/users/s1lver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1lver/subscriptions","organizations_url":"https://api.github.com/users/s1lver/orgs","repos_url":"https://api.github.com/users/s1lver/repos","events_url":"https://api.github.com/users/s1lver/events{/privacy}","received_events_url":"https://api.github.com/users/s1lver/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-10T09:57:07Z","updated_at":"2018-09-14T08:14:46Z","closed_at":"2018-09-14T08:14:46Z","author_association":"CONTRIBUTOR","body":"Hi!\r\nAfter the last update, the logic for connecting scripts was broken.\r\nI use the following construction:\r\n```php\r\nclass AppAsset extends AssetBundle {\r\n\tpublic $basePath = '@webroot';\r\n\tpublic $baseUrl = '@web';\r\n\tpublic $css = [];\r\n\tpublic $js = [];\r\n\r\n\tpublic $depends = [\r\n\t\tYiiAsset::class,\r\n\t\tBootstrapPluginAsset::class,\r\n\t\tFontAwesomeAsset::class\r\n\t];\r\n}\r\n```\r\n\r\nOn the page with the widget I connect my script:\r\n```php\r\nuse app\\assets\\AppAsset;\r\n$this->registerJsFile('js/data.js', ['depends' => AppAsset::class, 'position' => $this::POS_END]);\r\n```\r\nand I get an error...\r\n\r\n> An asset bundle that depends on 'yii\\bootstrap\\BootstrapAsset' has a higher javascript file position configured than 'yii\\bootstrap\\BootstrapAsset'.\r\n\r\n [I see commit](https://github.com/kartik-v/yii2-dialog/commit/d81debbde023d41b79e2f4fda288b329f9f85d32) and replase position to `POS_HEAD`\r\n\r\n> An asset bundle that depends on '\\kartik\\daterange\\MomentAsset' has a higher javascript file position configured than '\\kartik\\daterange\\MomentAsset'.\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/63216895-assets-conflict?utm_campaign=plugin&utm_content=tracker%2F607905&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F607905&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}
{"actor":{"display_login":"s1lver"}}