The float field type was missed :)

CommentFileSizeAuthor
#6 2996131-6.patch1.07 KBtavib47
#3 2996131-3.patch918 bytestavib47
#2 2996131-2.patch386 bytestavib47

Comments

tavib47 created an issue. See original summary.

tavib47’s picture

StatusFileSize
new386 bytes
tavib47’s picture

StatusFileSize
new918 bytes

I also found an issue about multivalued widgets. When $multivalue = TRUE but $element['#theme'] == 'field_multiple_value_form', the element is actually just a wrapper and the only child will be handled separately anyway.

See Drupal\Core\Entity\Display\EntityFormDisplayInterface:

   *       // For 'single-value' widgets:
   *       '#theme' => 'field_multiple_value_form',
   *       '#cardinality' => The field cardinality,
   *       '#cardinality_multiple' => TRUE if the field can contain multiple
   *         items, FALSE otherwise.
tavib47’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: 2996131-3.patch, failed testing. View results

tavib47’s picture

StatusFileSize
new1.07 KB

I also found out that for datetime widget, the '#field_parents' key is set as $element['#field_parents'] instead of $element['value']['#field_parents']

nickdickinsonwilde’s picture

Title: TypeError: Argument 6 passed to field_states_ui_get_states() must be of the type array, null given » Float widget unrecognized
Assigned: tavib47 » Unassigned
Status: Needs work » Fixed

Thanks for the reports - and patience, haven't been the most active with this module lately.
Best to fix one issue per umh issue; so I'm just fixing the first report in this commit.
That said, see core issue #3004738: Multiple Value Field Doesn't Render Attributes re the error with field_multiple_value_form, and changes in #3004850: Improve handling of multiple value forms for improved handling here.

  • tavib47 authored 34dbcbb on 8.x-2.x
    Issue #2996131 by tavib47: Float widget unrecognized
    
nickdickinsonwilde’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
nickdickinsonwilde’s picture

Status: Fixed » Closed (fixed)

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