Project

General

Profile

Actions

Defect #1844

closed

Boolean select on automatic role rule detail doesn't work (EAV form)

Added by Ondřej Kopr over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Low
Assignee:
Radek Tomiška
Category:
Eav
Target version:
Start date:
09/10/2019
Due date:
% Done:

90%

Estimated time:
Affected versions:
Owner:

Description

While I want select EAV attribute on automatic role rule detail and I select boolean select eav attribute error appears into console or detail. Please could you check this form behind this detail?

Error while I have only one eav attribute:

Error from console:

Uncaught TypeError: Cannot read property 'toString' of undefined
    at t.value (app.js:225193)
    at t.value (app.js:224163)
    at t.value (app.js:225209)
    at t.value (app.js:224422)
    at d._renderValidatedComponentWithoutOwnerOrContext (app.js:173201)
    at d._renderValidatedComponent (app.js:173224)
    at d.performInitialMount (app.js:172764)
    at d.mountComponent (app.js:172660)
    at Object.mountComponent (app.js:178877)
    at Object.updateChildren (app.js:172304)

Temporary workaround, set boolean checkbox instead of boolean selecbox:

Affected version: 9.7.5,9.7.3


Files

err01.png (31.9 KB) err01.png Ondřej Kopr, 09/10/2019 02:03 PM
err02.png (7.18 KB) err02.png Ondřej Kopr, 09/10/2019 02:04 PM
Actions #1

Updated by Radek Tomiška over 5 years ago

  • Status changed from New to Needs feedback
  • Assignee changed from Radek Tomiška to Vít Švanda
  • Priority changed from Normal to Low
  • Target version set to Rhyolite (9.7.7)
  • % Done changed from 0 to 90

I improved usage of eav form renderers outside eav form component (used in automatic roles in standard abstract form component):
- value can be undefined now
- input validations are called (for required usage)
- focus is implemented (when validation fails)

Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/f12e5ccf4c1f2cdc39bce777aed7fb96f49ae583

Could you do a feedback, please?

Actions #2

Updated by Vít Švanda over 5 years ago

  • Status changed from Needs feedback to Resolved
  • Assignee changed from Vít Švanda to Radek Tomiška

I did review, works correctly. Thanks for that.

Actions #3

Updated by Radek Tomiška about 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF