You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* We're querying for the Standard or Super field's (inventory-enabled Drop Down fields with available rooms) inventory.
48
+
* Let's ensure that the Ultimate field's claimed inventory is included in the Standard and Super fields'.
49
+
*/
51
50
$fields_to_alter = array( $ultimate_field_id );
52
51
} else {
53
52
return$query;
54
53
}
55
54
56
-
foreach( $fields_to_alteras$current_field_id ) {
55
+
foreach( $fields_to_alteras$current_field_id ) {
57
56
$query['where'] = preg_replace(
58
57
"/\(e.form_id = {$form_id} AND em.form_id = {$form_id} AND em.meta_key = '{$current_field_id}'\) AND ([a-z0-9_]+)\.meta_value = '(.*?)' AND [a-z0-9_]+\.meta_value = '(.*?)'/",
59
58
"(e.form_id = {$form_id} AND em.form_id = {$form_id} AND em.meta_key = '{$current_field_id}') AND \${1}.meta_value = '\${2}'",
0 commit comments