Reviewed & tested by the community
Project:
Drake :: Drupal-CakePHP bridge
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 May 2007 at 13:36 UTC
Updated:
14 May 2007 at 13:26 UTC
Jump to comment: Most recent file
Comments
Comment #1
pearcec commentedworkflow.module is using strstr which ends up matching on an empty section. What happens is when CakePHP is invoked it trashes the _GET['path'] variable. So we can just save it and restore it.
// Save _GET['path'] for proper help$savePath = $_GET['path];
// Execute CakePHP action
$content = $cakeDispatcher->get($parameters['url']);
// Restore _GET['path'] for proper help
$_GET['path] = $savePath;
?>
Comment #2
pearcec commentedworkflow.module is using strstr which ends up matching on an empty section. What happens is when CakePHP is invoked it trashes the _GET['path'] variable. So we can just save it and restore it.
// Save _GET['path'] for proper help$savePath = $_GET['path];
// Execute CakePHP action
$content = $cakeDispatcher->get($parameters['url']);
// Restore _GET['path'] for proper help
$_GET['path] = $savePath;
?>
Comment #3
pearcec commentedworkflow.module is using strstr which ends up matching on an empty section. What happens is when CakePHP is invoked it trashes the _GET['path'] variable. So we can just save it and restore it.
// Save _GET['q'] for proper help$savePath = $_GET['q'];
// Execute CakePHP action
$content = $cakeDispatcher->get($parameters['url']);
// Restore _GET['q'] for proper help
$_GET['q'] = $savePath;
?>
Comment #4
pearcec commentedgah! anyway to delete the first two comments? I didn't think they submitted, and I realized it isn't path but q that needs saving. Anyway, you get the picture.
Comment #5
jg-1 commentedBoth 'q' and 'task' $_REQUEST params are set for removal on line 303 in drake.module:
They are removed as part of the cake dispatcher's _start() function (lines 284-291) in lib/cake_embedded_dispatcher.class.php:
I've attached a patch file that does three things:
This solves my workflow conflict.
Comment #6
pearcec commentedI patched it and it works like a champ. Thanks.