Bug
Inlined service form with compound constraint not rendered
Issue description
When an inlined service form contains one or more compound constraints, it is not rendered and the JavaScript console says: VM1991:27 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'cc16596').
Developer comments
There is two separate bugs taking effect here. Both result in the same behavior described above.
* When a topic-form contains compound constraints, then its DOM node is connected before the script tag providing the compound constraints. Thus they cannot be found. This was fixed by delaying the actual creation of the TopicForm after TOPINCS.web.init has progressed to a state where all the basic info is present, but the content is not displayed.
* When the compound constraint is on an abstract super type of the topic type in question. In this case the form is also affected, because the compound constraints are simply not shipped in the HTML source code.
Nasty one. The client code base did not get easier to understand nor better since the arrival of Promises. On the contrary.
|
Work sessions3
Start |
2022-04-24T09:47:14
|
End |
2022-04-24T11:59:03
|
Participant |
Robert Cerny
|
Start |
2022-04-25T08:02:51
|
End |
2022-04-25T12:05:42
|
Participant |
Robert Cerny
|
Start |
2022-04-25T14:08:17
|
End |
2022-04-25T15:23:08
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.