As seen in the attached picture, the price and status fields arn't retrieved. When clicking the save button im getting the following error.
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /drupal/system/ajax
StatusText: Service unavailable (with message)
ResponseText: EntityMalformedException: Missing bundle property on entity of type commerce_product. in entity_extract_ids() (line 7641 of C:\xampp\htdocs\drupal\includes\common.inc).
Using this module with Commerce 7.x-1.4
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | missing_product_entity_in_quick_edit_form-1847664-4.patch | 2 KB | vasike |
| #3 | missing_product_entity_in_quick_edit_form-1847664-3.patch | 2.25 KB | vasike |
| bug_quickedit_product.PNG | 21.14 KB | jbekker |
Comments
Comment #1
rei commentedsame with me, http://drupal.org/node/1847470
Comment #2
dimitriseng commentedSame here...
Comment #3
vasikei can confirm this issue.
this issue take place because there's no product id data in the results for the quick edit handler, which means we have no entity (product) data for the quick edit form.
so the quick edit form have no product defined, it's an "empty" form.
this happens because there's no product image field defined.
this field exists in commerce kickstart and helps getting the product data.
patch
here is patch that adds the " Commerce Product: Product ID" field to the "Commerce Backoffice: Product variations" view.
Excludes from display & No label.
this also take care for some notices from log messages for the missing taxonomy terms.
Comment #4
vasikehere is a new approach to get the product id/data.
add 'product_id' as the real field to the views Quick Edit Form field definition.
Comment #5
jbekker commentedBoth patches work for me.
Comment #6
bojanz commentedCommitted #4.
Comment #7.0
(not verified) commentedtypo