Skip to content

Commit db9f2dc

Browse files
committed
Fix in Office365._GraphBaseList
1 parent 2cff242 commit db9f2dc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Project/Sources/Classes/_BaseClass.4dm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ Function _clearErrorStack
107107
// ----------------------------------------------------
108108

109109

110-
Function _throwErrors($inThrowErrors : Boolean)
110+
Function _throwErrors($inThrowErrors : Boolean) : Boolean
111+
112+
var $oldValue : Boolean:=This._internals._throwErrors
111113

112114
If (Bool($inThrowErrors))
113115
This._internals._throwErrors:=True
@@ -118,6 +120,8 @@ Function _throwErrors($inThrowErrors : Boolean)
118120
This._getErrorStack().clear()
119121
End if
120122

123+
return $oldValue
124+
121125

122126
// ----------------------------------------------------
123127

Project/Sources/Classes/_GraphBaseList.4dm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Class constructor($inProvider : cs.OAuth2Provider; $inURL : Text; $inHeaders : O
2626
Function _getList($inURL : Text) : Boolean
2727

2828
Super._throwErrors(False)
29+
var $throwErrors : Boolean:=This._internals._oAuth2Provider._throwErrors(False)
2930
var $response : Object:=Super._sendRequestAndWaitResponse("GET"; $inURL; This._internals._headers)
31+
This._internals._oAuth2Provider._throwErrors($throwErrors)
3032
Super._throwErrors(True)
3133

3234
This.isLastPage:=False
@@ -59,8 +61,8 @@ Function _getList($inURL : Text) : Boolean
5961
End if
6062
return False
6163
End if
62-
63-
64+
65+
6466
// Mark: - [Public]
6567
// ----------------------------------------------------
6668

0 commit comments

Comments
 (0)