I'm using a multistep form with several product fields. The single value fields work fine when the user goes back and adjusts their draft. Whenever a user does not make a selection for a multiple value field that is optional, the 'Quantity must be a number' form error is displayed because the form state saves the quantity as a json encoded string.

You can see the affected code at line 414 of productfield.inc.

Patch to follow.

Comments

arosboro’s picture

Status: Active » Needs review
StatusFileSize
new934 bytes
johnennew’s picture

Status: Needs review » Reviewed & tested by the community

Looks good - will get this committed for the next release

  • ceng committed 15da5b7 on 7.x-2.x authored by arosboro
    Issue #2446087 by arosboro: Quantity issues with multifields when no...
johnennew’s picture

Status: Reviewed & tested by the community » Fixed

Committed with thanks.

johnennew’s picture

Status: Fixed » Closed (fixed)

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