Defect #2020
closedAfter upgrade version to 10 isn't possible create automatic role rule concepts with different type than identity
100%
Description
- create new automatic role by attribute,
- create some rule and change type of rule to identity EAV (for example),
- now save the rule,
- page throw error:
app.js:265854 Uncaught TypeError: Cannot read property 'isValid' of null at AbstractForm.isFormValid (app.js:265854) at AutomaticRoleRuleTable._saveConcept (app.js:290117) at HTMLUnknownElement.callCallback (app.js:178894) at Object.invokeGuardedCallbackDev (app.js:178944) at invokeGuardedCallback (app.js:179001) at invokeGuardedCallbackAndCatchFirstError (app.js:179015) at executeDispatch (app.js:179147) at executeDispatchesInOrder (app.js:179166) at executeDispatchesAndRelease (app.js:179272) at executeDispatchesAndReleaseTopLevel (app.js:179280)
The error comes from AutomaticRoleRuleTable but original issues will be probably with compose value form attribute in AutomaticRoleAttributeRuleDetail. The reference with refs.value doesn't exists after detail is re-rendered.
Simulated on clean version 10.0.0
Affected version: 10.0.0
Updated by Ondřej Kopr about 4 years ago
- Assignee changed from Ondřej Kopr to Radek Tomiška
Updated by Radek Tomiška about 4 years ago
- Target version changed from 10.1.0 to 10.0.1
Updated by Radek Tomiška about 4 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 0 to 90
I fixed validation for eav attributes used in automatic role rule detail.
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/158aa6c7fb8e67e366871ceb7a9b90ee6795bcc4
Could yor provide me a feedback, please?
Updated by Ondřej Kopr about 4 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondřej Kopr to Radek Tomiška
- % Done changed from 90 to 100
I made the feedback. Thank you for fix this issue. I tested on new hotfix branch and also after I merged this into my branch and both versions works! Thank you.
I also made a test on version 9.7.11 and on this version this also works well.
Thank you.
Updated by Radek Tomiška about 4 years ago
- Status changed from Resolved to Closed