This topic contains 1 reply, has 2 voices, and was last updated by vseniuk 6 years, 1 month ago.
- Topic
Hi,
I added a Multienumfield to the Contact through Migration:
$table = $schema->getTable('orocrm_contact');
$extension->addEnumField(
$schema,
'orocrm_contact',
'newsletter',
'nlx_newsletter',
true,
false,
[
'extend' => ['owner' => ExtendScope::OWNER_SYSTEM],
'datagrid' => ['is_visible' => DatagridScope::IS_VISIBLE_TRUE],
'dataaudit' => ['auditable' => true],
'importexport' => ["order" => 90, "short" => true]
]
);
It works fine in form and view. But it show only empty fields in datagrid. In the relationstable in the database are the entries correct saved from the form. Inline editing shows all Enumtypes correctly, but it doesnt save the marked values. Here are the configuration from the datagrid.yml:
type: orm
query:
select:
.....
- n.name as newsletter
join:
left:
.....
- { join: c.newsletter, alias: n }
......
columns:
.....
newsletter:
context:
enum_code: nlx_newsletter
frontend_type: multiEnum
label: nlxcrm.customer.nlxcustomer.newsletter.label
What i have done wrong ?
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.