Commit fdd4749f authored by kainuk's avatar kainuk
Browse files

Merge branch 'cannotUpdate' into 'master'

Fixes issue #3, Cannot update a webform submission

Closes #3

See merge request !5
parents 46da72d1 38ba9924
......@@ -34,7 +34,7 @@ class webform_civirules_trigger {
}
$db = db_query('SELECT * FROM {webform_civicrm_submissions_civirules_trigger} WHERE sid = :sid', array(':sid' => $this->submission->sid));
if (($row = $db->fetchAssoc()) && $row->trigger_fired) {
if (($row = $db->fetchAssoc()) && $row['trigger_fired']) {
// This submission did already fire a civirules trigger.
return;
}
......@@ -64,4 +64,4 @@ class webform_civirules_trigger {
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment