Commit 6140f505 authored by Eric Windham's avatar Eric Windham

Merge branch 'issue#3752' into 'feat-stage-two'

The SQL Statement for Updating Action Meta Needed to Use parent_id

See merge request ninja-forms/ninja-forms!3690
parents 32e7982d 895aff58
Pipeline #404 passed with stage
in 1 minute and 47 seconds
......@@ -337,7 +337,8 @@ class NF_Updates_CacheCollateActions extends NF_Abstracts_RequiredUpdate
// If the key is not blacklisted...
if ( ! in_array( $key, $this->blacklist ) ) {
// Add the value to be updated.
array_push( $meta_values, "WHEN `key` = '{$key}' THEN '" . $this->prepare( $setting ) . "'" );
$action = intval( $action );
array_push( $meta_values, "WHEN `key` = '{$key}' AND `parent_id` = {$action} THEN '" . $this->prepare( $setting ) . "'" );
}
}
$this->limit--;
......
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