Skip to content

Commit

Permalink
Fix ACI0104487
Browse files Browse the repository at this point in the history
Jobs:ACI0104487
  • Loading branch information
yannicktrinh committed Jan 9, 2024
1 parent 324a110 commit 427fed7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Project/Sources/Classes/GoogleMail.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -254,24 +254,24 @@ Function getMails($inMailIds : Collection; $inParameters : Object) : Collection
Else

var $result : Collection:=Null
var $mailIds : Collection:=(Value type($inMailIds)=Is collection) ? $inMailIds : []

If ($inMailIds.length=1)
If (($mailIds.length>0) && (Value type($mailIds[0])=Is object))
$mailIds:=$mailIds.extract("id")
End if

If ($mailIds.length=1)

var $response : Variant:=This.getMail($inMailIds[0]; $inParameters)
var $response : Variant:=This.getMail($mailIds[0]; $inParameters)
If ($response#Null)
$result:=New collection($response)
End if

Else

var $URL; $urlParams; $userId; $mailType; $mailId; $format : Text
var $mailIds : Collection:=(Value type($inMailIds)=Is collection) ? $inMailIds : []
var $parameters : Object

If (($mailIds.length>0) && (Value type($mailIds[0])=Is object))
$mailIds:=$mailIds.extract("id")
End if

$URL:=Super._getURL()
$userId:=(Length(String(This.userId))>0) ? This.userId : "me"
$mailType:=(Length(String($inParameters.mailType))>0) ? $inParameters.mailType : This.mailType
Expand Down

0 comments on commit 427fed7

Please sign in to comment.