The problem:

the weblink.module does a node_load in its nodeapi validate code. The node_load causes workflow.module to set a static variable $editing to TRUE. The variable $editing is then used in an if statement to see if the module should display the workflow dropdown.

to replicate:

1) activate workflow and weblink modules
2) add a weblink with link "http://www.example.com"
3) add another weblink with link "http://www.example.com" but this time hit preview first

the identical link url will cause a node_load and demonstrate the problem.

My quick fix:

Also check for $node->nid along with $editing=TRUE

104c117
<       if (isset($editing)) { // we are editing a node
---
>       if (isset($editing) && isset($node->nid)) { // we are editing a node

Comments

jvandyk’s picture

Assigned: Unassigned » jvandyk

Applied as suggested.

Anonymous’s picture