Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Its`s possible to create several categories with is default = true #50

Closed
maistrenkoIulia opened this issue Mar 12, 2021 · 5 comments
Closed
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@maistrenkoIulia
Copy link

Jmix version: 1.0.0-SNAPSHOT
Jmix Studio plugin version: 1.0.SNAPSHOT2626-202
IntelliJ version: IntelliJ IDEA 2020.3.2 (Community Edition)

TC:
create the project with dynamic attribute component
create entity
run app
admininstarion -> dynamic attributes
create category -> set is default = true
create second category for the same entity -> set is default = true
ER: flag is default for first category should reset
AR:
image

@andreysubbotin andreysubbotin added this to the 1.0.0 milestone Mar 15, 2021
@andreysubbotin andreysubbotin self-assigned this Mar 15, 2021
@knstvk knstvk added the type: bug Something isn't working label Mar 18, 2021
@natfirst natfirst assigned DartVerder and unassigned natfirst Apr 2, 2021
@maistrenkoIulia
Copy link
Author

reproduced on
Jmix version: 1.0.0-SNAPSHOT
Jmix Studio plugin version: 1.0.SNAPSHOT2820-211
IntelliJ version: IntelliJ IDEA 2021.1 (Community Edition)

@bulgakovea
Copy link
Contributor

Can't reproduce.
TC 1 :
1 - create Category "t1". in editor check "Is default". Save
2 - create Category "t2". in editor check "Is default". Save.
Result:
t1 - Is default - unchecked
t2 - Is default - checked

TC 2:
1 - create Category "t1" and "t2" with unchecked "Is default"
2 - check t1 "Is default". save
3 - check t2 "Is default". save
Result:
t1 - Is default - unchecked
t2 - Is default - checked

@maistrenkoIulia
Copy link
Author

reproduced
Jmix version: 1.0.0-SNAPSHOT
Jmix Studio plugin version: 1.0.SNAPSHOT2876-211
IntelliJ version: IntelliJ IDEA 2021.1.1 (Community Edition)

image.png

@bulgakovea
Copy link
Contributor

@maistrenkoIulia
Actually, this is the expected behavior of the system.
You are trying to create a category for multiple entity types (in this case, "user" and "person").
Each entity type can have its own default category.

@maistrenkoIulia
Copy link
Author

verified

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants