Closed (fixed)
Project:
Computed Field
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2008 at 20:31 UTC
Updated:
2 Jun 2009 at 07:20 UTC
I just noticed that computed fields are not recalculated during node preview.
Here's a fix that seems to work for me. Just add the following to the swicth block of computed_field_field():
case 'sanitize':
if ($node->build_mode == NODE_BUILD_PREVIEW) {
_computed_field_compute_value($node, $field, $node_field);
}
break;
Comments
Comment #1
Moonshine commentedNice find :) Added to Drupal 6 branch... will show in the dev tarball on next rebuild.
Comment #2
markus_petrux commentedThank you! :)