Forums and Workflow

Forums and Workflow

Wednesday 09 April 2003 6:36:34 am - 4 replies

Author Message

Paul Forsyth

Wednesday 09 April 2003 10:34:15 am

Just to clarify this. The problem seems to be with the $node that gets assigned on line 202. It appears that $node is null and then the script redirects to the 'error' sitemap location.

Initial impressions are that the node is null because it has yet to be created. It will be created when the post is approved but this doesn't help with the redirect which will occur before that action takes place. Maybe the code should check the workflow requests?

Another point is that this code doesn't seem to respect the settings within site.ini.php where the default and error pages are defined.

Hope this helps

Paul

Sergiy Pushchin

Friday 11 April 2003 7:11:18 am

If I understood you write you should change line 226 in edit.php to:

$module->redirectToView( 'view', array( 'full', $version->attribute( 'main_parent_node_id' ) ) );

In that case behavour of system will be the same with approval workflow as it is without it.

--SP

Tony Wood

Friday 11 April 2003 7:20:02 am

Perfect... that just what we needed...
Is this going into the main 3.0 stable branch or do we need to keep a local patch?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Sergiy Pushchin

Friday 11 April 2003 8:10:32 am

I think I will commit it to stable.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.