Basis drop-down in Rights management form is broken
|Target version:||Release 2.7.0|
|Google Code Legacy ID:||Tested version:||2.6|
The rights management form displays some fields selectively based on the current basis value. This is not currently working and instead all form fields are displayed. The browser console is showing some errors when the page first renders and when the user interacts with the drop-down.
- Create a new description.
- Create new rights.
- Choose an option from the basis dropdown (Rights basis area)
All form fields are displayed instead of hiding those that are not relevant to the chosen basis. This line is raising a TypeError: Cannot read property 'match' of undefined.
It's a breaking change in the jQuery API that we've been experiencing since the upgrade to jQuery 3. Related: https://jquery.com/upgrade-guide/1.9/#attr-versus-prop-.
Form fields should be displayed or hidden based on the value chosen in the basis dropdown.