Skip to content

Commit

Permalink
fix: add range search to datetimecombo fieldType
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbarletta authored May 17, 2018
1 parent a2b7c41 commit 6ea0e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/Schema/argsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function entityArgsHelper($entity, $mutation=false)
$argsArray = array_merge($argsArray, [$key => self::suitecrmToGraphqlTypeMapper($fieldType)]);
if ($mutation==false) {
//Mutation doesn't allow this types as they are cannot be used to insert new data
if ($fieldType=='date' || $fieldType=='datetime') {
if ($fieldType=='date' || $fieldType=='datetime' || $fieldType=='datetimecombo') {
//If the field type is a date/datetime we add 2 more fields so we can search on that field using range
$fieldNameStartRange="start_range_".$key;
$fieldNameEndRange="end_range_".$key;
Expand Down

0 comments on commit 6ea0e8a

Please sign in to comment.