summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2023-10-02 14:14:42 +0200
committerJean-Pierre Ledure <jp@ledure.be>2023-10-02 18:18:40 +0200
commitd97b5849f3cfcecbdd929dca7bd7ac2c4fa31f8b (patch)
tree85506a758fd8f58380f2cf4fd703fb969eea28b6 /wizards
parent11943b9ab229c0d2faee6c9ca89792d70a3cfb6f (diff)
ScriptForge (SF_Session) validate Recipient arg of SendMail
When the Recipient argument is absent when calling session.SendMail(...) or is not a string, an error message is raised, as should, but its content is wrong. The error message is now corrected. Change-Id: I248b6ce55c85a4b956f834c8e1ea7d0df40ab233 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157488 Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/scriptforge/SF_Session.xba2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/source/scriptforge/SF_Session.xba b/wizards/source/scriptforge/SF_Session.xba
index 2bde313194b1..aeca1133e346 100644
--- a/wizards/source/scriptforge/SF_Session.xba
+++ b/wizards/source/scriptforge/SF_Session.xba
@@ -649,7 +649,7 @@ Check:
If IsMissing(EditMessage) Or IsEmpty(EditMessage) Then EditMessage = True
If SF_Utils._EnterFunction(cstThisSub, cstSubArgs) Then
- If Not SF_Utils._Validate(Cc, &quot;Recipient&quot;, V_STRING) Then GoTo Finally
+ If Not SF_Utils._Validate(Recipient, &quot;Recipient&quot;, V_STRING) Then GoTo Finally
If Not SF_Utils._Validate(Cc, &quot;Cc&quot;, V_STRING) Then GoTo Finally
If Not SF_Utils._Validate(Bcc, &quot;Bcc&quot;, V_STRING) Then GoTo Finally
If Not SF_Utils._Validate(Subject, &quot;Subject&quot;, V_STRING) Then GoTo Finally