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! :)