wizards/source/scriptforge/SF_Session.xba | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d97b5849f3cfcecbdd929dca7bd7ac2c4fa31f8b Author: Jean-Pierre Ledure <j...@ledure.be> AuthorDate: Mon Oct 2 14:14:42 2023 +0200 Commit: Jean-Pierre Ledure <j...@ledure.be> CommitDate: Mon Oct 2 18:18:40 2023 +0200 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 <j...@ledure.be> 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