We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b21b0d commit 619ffecCopy full SHA for 619ffec
2 files changed
app/Http/Utils/Filters/FilterParser.php
@@ -118,14 +118,15 @@ public static function parse($filters, $allowed_fields = [])
118
}
119
120
if (!isset($allowed_fields[$field])) {
121
- throw new FilterParserException(sprintf("filter by field %s is not allowed", $field));
+ throw new FilterParserException(sprintf("Filter by field %s is not allowed.", $field));
122
123
124
if (!is_array($allowed_fields[$field])) {
125
- throw new FilterParserException(sprintf("filter by field %s is not an array", $field));
+ throw new FilterParserException(sprintf("Filter by field %s is not an array.", $field));
126
127
+
128
if (!in_array($op, $allowed_fields[$field])) {
- throw new FilterParserException(sprintf("%s op is not allowed for filter by field %s", $op, $field));
129
+ throw new FilterParserException(sprintf("%s op is not allowed for filter by field %s.", $op, $field));
130
131
132
$f = self::buildFilter($field, $op, $value, $same_field_op);
@@ -154,7 +155,7 @@ public static function filterExpresion(string $exp)
154
155
156
$op = $matches[0];
157
$operands = explode($op, $exp, 2);
- $field = $operands[0];
158
+ $field = strtolower(trim($operands[0]));
159
$value = $operands[1];
160
Log::debug(sprintf("FilterParser::filterExpresion field %s op %s value %s", $field, $op, json_encode($value)));
161
return [$field, $op, $value];
app/Jobs/Emails/PresentationSubmissions/ProcessSpeakersEmailRequestJob.php
@@ -90,12 +90,14 @@ public function handle
90
'has_alternate_presentations' => ['=='],
91
'has_rejected_presentations' => ['=='],
92
'presentations_track_id' => ['=='],
93
- 'presentations_selection_plan_id' => ['=='],
94
- 'presentations_type_id' => ['=='],
95
- 'presentations_title' => ['=@', '@@', '=='],
96
- 'presentations_abstract' => ['=@', '@@', '=='],
+ 'presentations_selection_plan_id' => ['=='],
+ 'presentations_type_id' => ['=='],
+ 'presentations_title' => ['=@', '@@', '=='],
+ 'presentations_abstract' => ['=@', '@@', '=='],
97
'presentations_submitter_full_name' => ['=@', '@@', '=='],
98
'presentations_submitter_email' => ['=@', '@@', '=='],
99
+ 'has_media_upload_with_type' => ['=='],
100
+ 'has_not_media_upload_with_type' => ['=='],
101
]) : null;
102
103
$service->sendEmails($this->summit_id, $this->payload, $filter);
0 commit comments