If I understand well the flag cardinality is hardcoded to be on the user. What if I need a flag by entity?

Example

Wedding registry is an entity that more than 1 user can manage. I want to create a list of products in the registry, that will be added when a Wedding registry (manager, one of the users) flags them.

What I can do now

when one of the "managers" flags a product that is added by rules to the Wedding registry list.

The problem now

another "manager" can still flag the same product, i.e. he won't see the flag as already flagged since he is a different user
OR, if the flag is global, another Wedding registry manager can't add the same product to his registry.

Is this a (major) feature request or just a support request? :)

Comments

kopeboy’s picture

Issue summary: View changes
joachim’s picture

Status: Active » Fixed

> If I understand well the flag cardinality is hardcoded to be on the user. What if I need a flag by entity?

I don't really understand what you mean. I don't recall there being any cardinality-limiting functionality in Flag, though admittedly I don't have the codebase right in front of me.

> Wedding registry is an entity that more than 1 user can manage. I want to create a list of products in the registry, that will be added when a Wedding registry (manager, one of the users) flags them.

I don't think you want flag for this use case. You want a 'wedding registry' entity, which has a multi-valued reference field that points to the items which are then considered to be in the list. That way you can create multiple lists.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.