Steps to reproduce:
- Create a user "test2"
- Go to Content > D&M
- Upload a new document
- Click on the document kebab and select "Share"
- Type "test2" in the text box
- Click on the "Share" button
Expected: The user name should be autocompleted; the sharing action should succeed.
Actual: The user name is not autocompleted, and the action fails (the form will be rendered incorrectly after a refresh).
The root cause seems to be that the Js code is not loaded correctly. The form is submitted with the default action, causing a failure in the backend as lots of expected parameters are missing.