Closed (fixed)
Project:
Simple Payments
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2010 at 10:58 UTC
Updated:
22 Aug 2010 at 20:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
miiimoooOops.. that was the wrong piece of code. Here we go again:
Comment #2
fuerst commentedThe details field is marked as serialized in simple_payments.install so
drupal_write_record()takes care of serializing it itself. There should be no need to do this insimple_payments_payment_received(). Do you get an error regarding an unserialized details field?Comment #3
osopolarThe details field is marked as serialized in simple_payments.install. This is a typo and needs to be serialize (without the d), see: http://api.drupal.org/api/group/schemaapi.
Patch attached.
Comment #4
osopolarI think it also needs a hook_update_N to rebuild the schema cache.
Comment #5
fuerst commentedAh, sure, serialize and not serialized. Being the reason of the error miiimooo probably experienced.
Comment #6
osopolarThe correct name of the update function is: simple_payments_update_6101
Comment #7
fuerst commentedUsing the patch in #6 and a Paypal sandbox account it saves data serialized to simple_payment.details.
BTW: In the past I did not notice the serialize attribute of simple_payment.details so I did the serialization on my own.
Comment #8
jbrown commented$ret needs to be returned at the end of update functions.
Applied: http://drupal.org/cvs?commit=404042
Thanks!