Needs review
Project:
Multifield
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Apr 2015 at 18:46 UTC
Updated:
1 Jul 2018 at 18:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
e0ipsoThe suggested fix checks if the ID has been created and if not, then it calls
multifield_get_next_id()to get one.Comment #2
e0ipsoComment #3
e0ipsoAdding update code.
Comment #4
dave reidHow would a PDO Exception be raised before hook_field_presave() can be called? At that point nothing should have actually saved it to the database?
Comment #5
e0ipsoI have not been using multifield for a while now, and details are pretty fuzzy but I was getting this pretty consistently. I'm sorry I cannot provide more context.
Thanks for looping back Dave I know it takes a lot of effort!
Comment #6
aron novakI can confirm that this is a valid issue. My case in a nutshell:
Devel Generate saves a node (likely not important)
In, hook_node_presave, using entity_metadata_wrapper (via patch https://www.drupal.org/files/issues/2041531-39-entity-api-support.patch), set the value of the multifield and let the process continue. The patch solved the scenario to me.
Comment #7
rudi teschner commentedI had quite some problems recently as well with missing ids.
I think it was caused in multifield_field_update() in file multifield.field.inc. why though ... i do not know.
Have to see though if this solution has any siteeffects.