Closed (won't fix)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Sep 2010 at 22:25 UTC
Updated:
20 Apr 2012 at 15:48 UTC
It appears that ctools_edit_argument_form_submit always passes an empty array of settings to the settings callback because it is looking in the wrong place for its settings. Psuedo patch:
if (!isset($form_state['values']['argument_settings'])) {
$form_state['values']['argument_settings'] = array();
}
if (isset($argument['settings form submit']) && function_exists($argument['settings form submit'])) {
$argument['settings form submit']($form, $form_state['values']['argument_settings'], $form_state);
}
To:
if (!isset($form_state['values']['argument']['argument_settings'])) {
$form_state['values']['argument']['argument_settings'] = array();
}
if (isset($argument['settings form submit']) && function_exists($argument['settings form submit'])) {
$argument['settings form submit']($form, $form_state['values']['argument']['argument_settings'], $form_state);
}
Comments
Comment #1
neclimdulBTW, found this in the D7 update and don't actually have a location this shows up or is testable but it definitely does not match the form definition.
Comment #2
merlinofchaos commentedI don't think this code is actually in use at this time, though, as arguments now have a different UI. I think this code is cruft.
Comment #3
Ashlar commentedThis bug report has not been active for over six months. In an effort to clean-up the issue queue this item has been closed. If your modules are current and the report is still relevant please feel free to change the Status back to active.