Move group filtering to widget form alter and restrict group updates to entity forms
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3568449. --> Reported by: [iswariya](https://www.drupal.org/user/3248718) Related to !65 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>OgEntityReferenceFieldItemList::referencedEntities() applied access filtering when returning referenced entities, which caused programmatic checks to see different groups. That access-filtering should move into the widget form alter so it only affects widget UI.</p> <p>When code updates the OgGroupAudienceHelperInterface::DEFAULT_FIELD field programmatically, the og_entity_presave logic re-applies previous og_audience values (restoring old group selections), causing unintended group assignments. This restoration should only run for entity forms.</p>
issue