Multiple <count-property></count-property> in list #7312
Unanswered
GandonNicolas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a
Workshop
entity which is linked to aRegistrations
entity.A
Registrations
has several states (registered, pending, cancelled).In the list of
Workshop
that I display in admin, I would like to count the number ofRegistrations
with state registered and the number of pendingRegistrations
for each workshop.To do this, I use the
<count-property>
tag in myconfig/lists/workshops.xml
file.But I've noticed that if I declare a tag like this :
All goes well. I can see the number of
Registrations
in the registered state (1). The result:But if I try to add a second one:
The expected result is no longer good. The first tag is ignored and the result displayed is that of the second tag's condition :
Is my way of doing things correct?
Thanks in advance for any help
Beta Was this translation helpful? Give feedback.
All reactions