File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ public function getAvailableValues(): array {
221
221
222
222
public function equals ($ value ): bool {
223
223
$ value = html_entity_decode ($ value );
224
- $ itemtype = $ this ->question ->fields ['values ' ];
224
+ $ itemtype = $ this ->getSubItemtypeForValues ( $ this -> question ->fields ['values ' ]) ;
225
225
$ item = new $ itemtype ();
226
226
if ($ item ->isNewId ($ this ->value )) {
227
227
return ($ value === '' );
@@ -238,7 +238,7 @@ public function notEquals($value): bool {
238
238
239
239
public function greaterThan ($ value ): bool {
240
240
$ value = html_entity_decode ($ value );
241
- $ itemtype = $ this ->question ->fields ['values ' ];
241
+ $ itemtype = $ this ->getSubItemtypeForValues ( $ this -> question ->fields ['values ' ]) ;
242
242
$ item = new $ itemtype ();
243
243
if (!$ item ->getFromDB ($ this ->value )) {
244
244
throw new ComparisonException ('Item not found for comparison ' );
You can’t perform that action at this time.
0 commit comments