You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Editing multi-lang entities that are searchable (like meetings) crash when coexist, in a single installation, many organizations with different locales each.
The cause is probably the has_many :searchable_resources in the Searchable concern that is not scoping by decidim_organization_id and neither filtering by resource_type (I guess it needs :source_type, but I'm not sure).
To Reproduce
Steps to reproduce the behavior, in a single Decidim installation:
Create two organizations with different locales each.
Create searchable entities in one of them, one is enough.
Create a Meeting in the other.
Edit the former Meeting
5 crash!
Expected behavior
Editing any searchable resource should succeed, even when the organizations in the same tenant have different locales.
Describe the bug
Editing multi-lang entities that are searchable (like meetings) crash when coexist, in a single installation, many organizations with different locales each.
The cause is probably the has_many :searchable_resources in the Searchable concern that is not scoping by
decidim_organization_id
and neither filtering byresource_type
(I guess it needs :source_type, but I'm not sure).To Reproduce
Steps to reproduce the behavior, in a single Decidim installation:
5 crash!
Expected behavior
Editing any searchable resource should succeed, even when the organizations in the same tenant have different locales.
Stacktrace
The text was updated successfully, but these errors were encountered: