Hi

I have a computed field for a node which is an Ubercart product.

During checkout, the field content is being deleted from the database.

Code for my field is:

$nid = $_GET[product_nid];
$title = db_result(db_query("SELECT title FROM {node} WHERE nid = %d", $nid));
$node_field[0]['value'] = $title;

Thanks

Glenn

Comments

Moonshine’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

From the code, and considering this is a Ubercart checkout process, it would be very hard to say. If this is still a problem for you, I'd start by checking that $_GET[product_nid] is always available to your computed field throughout checkout. If it isn't then you'll certainly save an empty value with that code. You could check this by adding the following to your computed code on you development machine and running through checkout:

drupal_set_message("nid = " . $_GET[product_nid]);
mmjvb’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)