-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
Lookup the content type when initializing and throw an exception if a problem occurs, to avoid getting the problem later.
[MYPAGE-36] Lookup the content type when initializing and throw an exception if a problem occurs
Workflow | Original: classic default workflow [ 16183 ] | New: Ametys [ 25894 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
It's impossible to lookup a content type while initializing a component, as it is not itself initialized yet.
On the contrary, search all occurrences of PersonContentTypeRetriever.getPersonContentType() in service() or initialize() methods and replace by deferred ("lazy") calls in generate() or act().