Problem/Motivation

For now, if we wanna use the 'entity_access_field' type for the base fields in entity types it is not possible because of some methods that do not exist in that kind of field definition. Also, widgets with multiple values do not support default values and we cannot use the "allowed_values_function".

Proposed resolution

- Check if field definition has method "id", ni another case use "getName" to generate permission.
- Check allowed values by using allowed_values_function if it exists as it done in the options.module
- Update default value in the social_group_field_widget_form_alter to make it possible use multiple values.

Comments

tBKoT created an issue. See original summary.

tbkot’s picture

ressinel’s picture

Status: Active » Needs work
ressinel’s picture

Status: Needs work » Needs review
tbkot’s picture

StatusFileSize
new8.82 KB
tbkot’s picture

StatusFileSize
new11.14 KB
tbsiqueira’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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