Closed (fixed)
Project:
Collect
Version:
8.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2016 at 11:06 UTC
Updated:
11 Apr 2016 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mbovan commentedComment #3
mbovan commentedUpdate: Debugged this. The error that I'm getting after adding a processor (to a collect model) and saving the form is: "The entity does not have an ID".
It seems that Model entity somehow loses its "id" (it's NULL) after I click on "Submit". As I can see all other properties of the model (including original id) are untouched - only "id" is missing.
Comment #4
mbovan commentedComment #5
mbovan commentedCannot assign to @Berdir. :)
Comment #6
berdir#2650588: Entities with plugin collections should be updated before serialization broke this.
The problem was this line:
unset($vars[array_search($unset_var, $vars)]);. $unset_var was already removed from $vars, so array_search() returned FALSE. that returned 0 and it removed the id from the serialized array.
Now that I found it, it makes all sense and a I think I've even seen this before.
This was added to 8.0.x too, so it is safe to remove.
Comment #8
berdirAnd committed.
Comment #9
mbovan commentedGreat! :)