- 🇺🇸United States SocialNicheGuru
Is there an interdif for the last few patches? Are they different from #6 ✨ Add support for #cardinality (allowed number of values) to fields created programmatically with the type 'managed_file' Needs work
The field with the type 'managed_file' created programmatically does not respect the property '#cardinality' (allowed number of values). The limit for multivalue custom fields can not be set.
The following field has no limit despite the parameter '#cardinality' is set to 3.
$form['custom_file'] = [
'#type' => 'managed_file',
'#multiple' => TRUE,
'#upload_location' => 'public://photos',
'#cardinality' => 3,
];
Add support for #cardinality to fields created programmatically with the type 'managed_file'.
Add tests.
Needs work
10.1 ✨
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Is there an interdif for the last few patches? Are they different from #6 ✨ Add support for #cardinality (allowed number of values) to fields created programmatically with the type 'managed_file' Needs work