Commit 5044e46
committed
Merge branch 'bugfix/derived-topic-validation' into develop
Fixes a bug in which topics that derive from another topic still enforced required field validation, thus preventing required fields from effectively inheriting their values from the derived topic. This fix includes a simple conditional jQuery script which removed any jQuery Validator `rules()` as well as any HTML5 `required` attributes from `input`, `select`, and `textarea` fields. Other validators and validation attributes are left intact.
The `Key` (_Folder Name_) field will also retain its `required` attribute, since the `Key` attribute should always be defined. (Technically, we could inherit this value as well, but that's not currently implemented. As is, however, when a derived topic is set via the OnTopic Editor, the `Key` field will default to the derived topic's `Key` if a value for it hasn't already been set.)1 file changed
Lines changed: 12 additions & 0 deletions
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
111 | 123 | | |
112 | 124 | | |
113 | 125 | | |
| |||
0 commit comments