core/domain/services/graphql/data/mutations/DatetimeMutation.php 1 location
|
@@ 83-85 (lines=3) @@
|
| 80 |
|
$args['DTT_sold'] = (int) $input['sold']; |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
if (! empty($input['startDate'])) { |
| 84 |
|
$args['DTT_EVT_start'] = new DateTime(sanitize_text_field($input['startDate'])); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
if (! empty($input['tickets'])) { |
| 88 |
|
$args['tickets'] = array_map('sanitize_text_field', (array) $input['tickets']); |
core/domain/services/graphql/data/mutations/TicketMutation.php 1 location
|
@@ 118-120 (lines=3) @@
|
| 115 |
|
$args['TKT_sold'] = (int) $input['sold']; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
if (! empty($input['startDate'])) { |
| 119 |
|
$args['TKT_start_date'] = new DateTime(sanitize_text_field($input['startDate'])); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
if (array_key_exists('uses', $input)) { |
| 123 |
|
$args['TKT_uses'] = (int) $input['uses']; |