Skip to content
Snippets Groups Projects
Commit 4eea7677 authored by Stefan Borchert's avatar Stefan Borchert
Browse files

Fixes issue #1347218: webform data not saved on scheduled rule.

parent 59efa5e3
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ function webform_rules_token_list($type) {
*/
function webform_rules_token_values($type, $object = NULL, $options = array()) {
$values = array();
if (!is_array($object)) {
if (!is_array($object) || !isset($object['sid']) || !isset($object['components'])) {
return $values;
}
switch ($type) {
......@@ -293,6 +293,7 @@ function webform_rules_prepare_component_value($component_value, $raw = FALSE) {
* The rendered component value.
*/
function webform_rules_render_component($component, $value, $format = 'text', $title = TRUE) {
module_load_include('inc', 'webform', 'includes/webform.components');
if ($format != 'text') {
$format = 'html';
}
......
......@@ -65,7 +65,7 @@ function webform_rules_data_type_info() {
'label' => t('webform data'),
'class' => 'webform_rules_data_type_webform_data',
'savable' => TRUE,
'identifiable' => TRUE,
'identifiable' => FALSE,
'use_input_form' => FALSE,
'module' => 'Webform',
'token type' => 'webform',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment