Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2014 at 16:53 UTC
Updated:
30 May 2015 at 23:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
geekyMoa commentedComment #2
gngn commentedWe experienced the same problem since ctools 7.x-1.3 (7.x-1.4 too).
Problem occurs with user_forms - node_forms are OK.
There is an infinite loop starting with menu_get_item() to drupal_retrieve_form():
(We changed the paths, so ../ is our drupal root)
We looked at the changes introduced in 7.x-1.3 and found something in function ctools_context_create_user_edit_form (file file ctools/plugins/contexts/user_edit_form.inc).
The
static $created- test for allready-created - changed from a simple TRUE|FALSE to an array with categories.It first checks if $created[$category] is set (and returns if set).
In the following lines it checks $category and sets a default:
We think this should be the other way round:
1. Check $category (and set default)
2. Check if $created[$category] is set
We'll add a patch against the current dev.
Since ctools/plugins/contexts/user_edit_form.inc is the same as in 7.x-1.3 and 7.x-1.4, the patch can be applied to these versions, too.
Since we do not exactly understand the way ctools and form.inc work together, we're not sure if this is correct in all cases - but it solved our problem.
So if someone with a deeper ctools knowledge could have a look...
thanks and greetings, gngn and uli
Comment #3
damienmckennaComment #5
ACF commentedThis looks good to me, simple fix and I can confirm that this fixes the problem.
Comment #7
japerry