On Drupal 4.7.5, with PHP 4.4.4 on a Linux/Apache server running version 4.1.21 of MySQL

Whenever I delete an action from a transition, the resulting page's Add buttons have the wrong form action property. An extra slash (/) is added in front of the url.

before action deletion

<form action="/admin/workflow/actions/2"  method="post" id="workflow_actions_20">

after action deletion

<form action="//admin/workflow/actions/2"  method="post" id="workflow_actions_20">

I have to go back to admin/workflow and click "actions" again for the page to work properly.

I am not sure where this is happening, but I am pretty sure it has to be in the workflow module.

Comments

jvandyk’s picture

In line 1205 of workflow.module, change '/admin/workflow/actions/' to 'admin/workflow/actions' and report back as to whether that fixes the problem.

ambereyes’s picture

Yup, that fixed it.

jvandyk’s picture

Status: Active » Fixed

Fixed. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)