diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2023-10-02 14:14:42 +0200 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2023-10-02 18:18:40 +0200 |
commit | d97b5849f3cfcecbdd929dca7bd7ac2c4fa31f8b (patch) | |
tree | 85506a758fd8f58380f2cf4fd703fb969eea28b6 /wizards/source | |
parent | 11943b9ab229c0d2faee6c9ca89792d70a3cfb6f (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/source')
-rw-r--r-- | wizards/source/scriptforge/SF_Session.xba | 2 |
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, "Recipient", V_STRING) Then GoTo Finally + If Not SF_Utils._Validate(Recipient, "Recipient", V_STRING) Then GoTo Finally If Not SF_Utils._Validate(Cc, "Cc", V_STRING) Then GoTo Finally If Not SF_Utils._Validate(Bcc, "Bcc", V_STRING) Then GoTo Finally If Not SF_Utils._Validate(Subject, "Subject", V_STRING) Then GoTo Finally |