{"action":"opened","issue":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5586","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5586/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5586/comments","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5586/events","html_url":"https://github.com/OrchardCMS/Orchard/issues/5586","id":97951287,"number":5586,"title":"Dynamic Forms loads jquery.validate files in the wrong order","user":{"login":"douwinga","id":11961383,"avatar_url":"https://avatars.githubusercontent.com/u/11961383?v=3","gravatar_id":"","url":"https://api.github.com/users/douwinga","html_url":"https://github.com/douwinga","followers_url":"https://api.github.com/users/douwinga/followers","following_url":"https://api.github.com/users/douwinga/following{/other_user}","gists_url":"https://api.github.com/users/douwinga/gists{/gist_id}","starred_url":"https://api.github.com/users/douwinga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douwinga/subscriptions","organizations_url":"https://api.github.com/users/douwinga/orgs","repos_url":"https://api.github.com/users/douwinga/repos","events_url":"https://api.github.com/users/douwinga/events{/privacy}","received_events_url":"https://api.github.com/users/douwinga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T14:39:49Z","updated_at":"2015-07-29T14:39:49Z","closed_at":null,"body":"The Lib.js file of the Dynamic Forms module is getting generated in the wrong order which causes the following error:\r\n\r\n`Uncaught TypeError: Cannot read property 'adapters' of undefined`\r\n\r\nThis appears to be caused by the Assets.json file as it is doing the following\r\n```javascript\r\n{\r\n        \"inputs\": [ \"Assets/JavaScript/Lib/**/*.js\" ],\r\n        \"output\": \"Scripts/Lib.js\"\r\n}\r\n```\r\n\r\nThis causes the validation scripts to load in the following order since it loads them alphabetically:\r\n`jquery.validate.js`\r\n`jquery.validate.unobtrusive.additional.js`\r\n`jquery.validate.unobtrusive.js`\r\n\r\njquery.validate.unobtrusive.js needs to be loaded before jquery.validate.unobtrusive.additional.js\r\n\r\nRepro steps:\r\n\r\n1. Create a new Form\r\n2. Set the form to use client validation\r\n3. Publish and navigate to the form\r\n4. Check the console log for the error"}}