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, &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

Reply via email to