summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortbfisher2016-10-06 06:08:45 (GMT)
committerJelle Sebreghts2016-10-06 06:08:45 (GMT)
commit9bb9067ababc1e3512253cc5b3665e1921d5bd7d (patch)
tree2bb4b3850266981bad860f068f0a92259c7252b3
parent1cb735674e364b32a4418f00018acbbdd65a7cc2 (diff)
Issue #2767029 by tbfisher: webform_multifile_update_7001() sets non webform_multifile component values to "false"
-rw-r--r--webform_multifile.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/webform_multifile.install b/webform_multifile.install
index 863a691..488cd6e 100644
--- a/webform_multifile.install
+++ b/webform_multifile.install
@@ -37,7 +37,7 @@ function webform_multifile_requirements($phase) {
function webform_multifile_update_7001(&$sandbox) {
$q = db_select('webform_submitted_data', 'd')
->fields('d');
- $q->join('webform_component', 'c', 'c.cid = d.cid');
+ $q->join('webform_component', 'c', 'c.nid = d.nid and c.cid = d.cid');
$q->condition('c.type', 'multifile');
if (!isset($sandbox['total'])) {
$sandbox['current'] = 0;