| @@ 90-92 (lines=3) @@ | ||
| 87 | $input_fields = array_filter($input_fields); |
|
| 88 | ||
| 89 | // Use the proper operator. |
|
| 90 | if (! empty($input_fields['Registration.Event.EVT_ID']) && is_array($input_fields['Registration.Event.EVT_ID'])) { |
|
| 91 | $input_fields['Registration.Event.EVT_ID'] = ['IN', $input_fields['Registration.Event.EVT_ID']]; |
|
| 92 | } |
|
| 93 | if (! empty($input_fields['Registration.Ticket.TKT_ID']) && is_array($input_fields['Registration.Ticket.TKT_ID'])) { |
|
| 94 | $input_fields['Registration.Ticket.TKT_ID'] = ['IN', $input_fields['Registration.Ticket.TKT_ID']]; |
|
| 95 | } |
|
| @@ 93-95 (lines=3) @@ | ||
| 90 | if (! empty($input_fields['Registration.Event.EVT_ID']) && is_array($input_fields['Registration.Event.EVT_ID'])) { |
|
| 91 | $input_fields['Registration.Event.EVT_ID'] = ['IN', $input_fields['Registration.Event.EVT_ID']]; |
|
| 92 | } |
|
| 93 | if (! empty($input_fields['Registration.Ticket.TKT_ID']) && is_array($input_fields['Registration.Ticket.TKT_ID'])) { |
|
| 94 | $input_fields['Registration.Ticket.TKT_ID'] = ['IN', $input_fields['Registration.Ticket.TKT_ID']]; |
|
| 95 | } |
|
| 96 | // If Ticket param is passed, it will have preference over Datetime param |
|
| 97 | // So, use Datetime param only if a Ticket param is not passed |
|
| 98 | if (! empty($input_fields['Datetime.DTT_ID']) && empty($input_fields['Registration.Ticket.TKT_ID'])) { |
|
| @@ 85-87 (lines=3) @@ | ||
| 82 | $input_fields = $this->sanitizeInputFields($this->args['where']); |
|
| 83 | ||
| 84 | // Use the proper operator. |
|
| 85 | if (! empty($input_fields['EVT_ID']) && is_array($input_fields['EVT_ID'])) { |
|
| 86 | $input_fields['EVT_ID'] = ['in', $input_fields['EVT_ID']]; |
|
| 87 | } |
|
| 88 | if (! empty($input_fields['Ticket.TKT_ID']) && is_array($input_fields['Ticket.TKT_ID'])) { |
|
| 89 | $input_fields['Ticket.TKT_ID'] = ['in', $input_fields['Ticket.TKT_ID']]; |
|
| 90 | } |
|
| @@ 88-90 (lines=3) @@ | ||
| 85 | if (! empty($input_fields['EVT_ID']) && is_array($input_fields['EVT_ID'])) { |
|
| 86 | $input_fields['EVT_ID'] = ['in', $input_fields['EVT_ID']]; |
|
| 87 | } |
|
| 88 | if (! empty($input_fields['Ticket.TKT_ID']) && is_array($input_fields['Ticket.TKT_ID'])) { |
|
| 89 | $input_fields['Ticket.TKT_ID'] = ['in', $input_fields['Ticket.TKT_ID']]; |
|
| 90 | } |
|
| 91 | } |
|
| 92 | ||
| 93 | /** |
|
| @@ 85-87 (lines=3) @@ | ||
| 82 | $input_fields = $this->sanitizeInputFields($this->args['where']); |
|
| 83 | ||
| 84 | // Use the proper operator. |
|
| 85 | if (! empty($input_fields['PRC_ID']) && is_array($input_fields['PRC_ID'])) { |
|
| 86 | $input_fields['PRC_ID'] = ['in', $input_fields['PRC_ID']]; |
|
| 87 | } |
|
| 88 | if (! empty($input_fields['Ticket.TKT_ID']) && is_array($input_fields['Ticket.TKT_ID'])) { |
|
| 89 | $input_fields['Ticket.TKT_ID'] = ['in', $input_fields['Ticket.TKT_ID']]; |
|
| 90 | } |
|
| @@ 88-90 (lines=3) @@ | ||
| 85 | if (! empty($input_fields['PRC_ID']) && is_array($input_fields['PRC_ID'])) { |
|
| 86 | $input_fields['PRC_ID'] = ['in', $input_fields['PRC_ID']]; |
|
| 87 | } |
|
| 88 | if (! empty($input_fields['Ticket.TKT_ID']) && is_array($input_fields['Ticket.TKT_ID'])) { |
|
| 89 | $input_fields['Ticket.TKT_ID'] = ['in', $input_fields['Ticket.TKT_ID']]; |
|
| 90 | } |
|
| 91 | if (! empty($input_fields['Price_Type.PBT_ID']) && is_array($input_fields['Price_Type.PBT_ID'])) { |
|
| 92 | $input_fields['Price_Type.PBT_ID'] = ['in', $input_fields['Price_Type.PBT_ID']]; |
|
| 93 | } |
|
| @@ 91-93 (lines=3) @@ | ||
| 88 | if (! empty($input_fields['Ticket.TKT_ID']) && is_array($input_fields['Ticket.TKT_ID'])) { |
|
| 89 | $input_fields['Ticket.TKT_ID'] = ['in', $input_fields['Ticket.TKT_ID']]; |
|
| 90 | } |
|
| 91 | if (! empty($input_fields['Price_Type.PBT_ID']) && is_array($input_fields['Price_Type.PBT_ID'])) { |
|
| 92 | $input_fields['Price_Type.PBT_ID'] = ['in', $input_fields['Price_Type.PBT_ID']]; |
|
| 93 | } |
|
| 94 | if (! empty($input_fields['Price_Type.PRT_ID']) && is_array($input_fields['Price_Type.PRT_ID'])) { |
|
| 95 | $input_fields['Price_Type.PRT_ID'] = ['in', $input_fields['Price_Type.PRT_ID']]; |
|
| 96 | } |
|
| @@ 94-96 (lines=3) @@ | ||
| 91 | if (! empty($input_fields['Price_Type.PBT_ID']) && is_array($input_fields['Price_Type.PBT_ID'])) { |
|
| 92 | $input_fields['Price_Type.PBT_ID'] = ['in', $input_fields['Price_Type.PBT_ID']]; |
|
| 93 | } |
|
| 94 | if (! empty($input_fields['Price_Type.PRT_ID']) && is_array($input_fields['Price_Type.PRT_ID'])) { |
|
| 95 | $input_fields['Price_Type.PRT_ID'] = ['in', $input_fields['Price_Type.PRT_ID']]; |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| @@ 85-87 (lines=3) @@ | ||
| 82 | $input_fields = $this->sanitizeInputFields($this->args['where']); |
|
| 83 | ||
| 84 | // Use the proper operator. |
|
| 85 | if (! empty($input_fields['Datetime.DTT_ID']) && is_array($input_fields['Datetime.DTT_ID'])) { |
|
| 86 | $input_fields['Datetime.DTT_ID'] = ['in', $input_fields['Datetime.DTT_ID']]; |
|
| 87 | } |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|