Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2012 at 11:23 UTC
Updated:
17 Mar 2013 at 10:24 UTC
Code looks like
// This will perform a node_access check, so we don't have to.
return ctools_context_create('user_edit_form', $account);
return NULL;
And the last return is unnecessary.
| Comment | File | Size | Author |
|---|---|---|---|
| double-returns-user_edit.patch | 458 bytes | anon |
Comments
Comment #1
merlinofchaos commentedCommitted and pushed.
Comment #2
Jorrit commentedBe aware that your commit (http://drupalcode.org/project/ctools.git/commit/12d6b1d) contained more than just the above patch.
Comment #3
merlinofchaos commentedHuh. The other commit is intended, at least, but I thought they were separate. I must've messed up a commit command.
Comment #5
andypostThis commit introduces a huge performance regression with hook_process() fired for most of renderables. So better to revert it and split the hook into limited set of elements that allowed to accept class injections
Comment #6
andypostThis changes was from #1775660: Move the code for adding/removing classes from Panels to CTools that does get no testing and no profiling
Comment #7
andypostShout be fixed in #1775660: Move the code for adding/removing classes from Panels to CTools