I have a computed field. Below is the code that makes up my field:

$node_field[0]['value'] = str_pad($node->field_crn_number [0]['value'], 6, '0', STR_PAD_LEFT);

$display = $node_field_item['value'];

This field isn't working right for some reason for other roles. If I go in as a super admin and make a page with a computed value, it works but when people who have other roles do it, this is what happens.

1. The person hit's save.
2. The node looks like it's going back to the node view of the node as normal
3. Instead it switches to showing me the edit view of the node
4. A person must hit preview and then save in order for the field to show up properly.

How can I fix this? It's a really big problem.

I am using the computed field in conjunction with workflow, revisioning, and the serial number module.

Please help!

Comments

beckyjohnson’s picture

Sometimes it doesn't switch to the edit view at the last minute, sometimes it does take me to the node view state. I disabled revisioning and then enabled it again and did update php. That seems to help . The node does go to the view state now but the computed field still turns up as a bunch of 000000 now instead of it's computed field value.

Becky

mmjvb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)