Price field throws an error when using it in a custom content type and submitting a content to that form:

Warning: unserialize() expects parameter 1 to be string, array given in function commerce_price_field_load() (row 85 / /htdocs/sites/all/modules/commerce/modules/price/commerce_price.module).

I'm using commerce 7.x-1.x-dev from 2011-07-08.

Tormi

Comments

tormi’s picture

Also, in spite of marking price field as a required field in that custom content type, it's actually not required when submitting a content.

Tormi

rszrama’s picture

Status: Active » Fixed

If I'm not mistaken, the original error is no longer appearing. I'm not sure how to reproduce it. However, I did corroborate the "required" problem; the field widget form callback wasn't accommodating either the required setting or the help text. I've committed a fix for that. Please reopen w/ instructions to reproduce the original problem if it's still occurring.

Commit: http://drupalcode.org/project/commerce.git/commitdiff/e607a42

Status: Fixed » Closed (fixed)

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

ablaa’s picture

I can't test 7.x-1.x-dev right now, but I can reproduce this in 7.x-1.0 when previewing the content