• Newsletter Agent: NL Body Text could be set to null within run

    By Markus E Stroebel 2 decades ago

    I encountered that the body of the newsletter did not contain all the messages it should.



    I think the following code in the newsletter agent is broken (i haven't the time to look it it is fixed in 1.2)



    If tmp_stringresp<>"" And created.TimeDifference(newsletterlastrun) <= 0 Then 'created is the MAIN doc created. We have to see if we have included the main doc content or have to create a little "header" for resp only

    tmp_string = SEP_RESPONSE + Chr(13)+"New response(s) for """+ doc.GetItemValue("Subject")(0)+"""" + Chr(13)+ SEP_RESPONSE

    End If

                <br/>
    

    tmp_string = tmp_string + tmp_stringresp



    If the if-clause triggers, tmp_string is reset. IMHO it should be:



    tmp_stringresp = SEP_RESPONSE + Chr(13)+"New response(s) for """+ doc.GetItemValue("Subject")(0)+"""" + Chr(13)+ SEP_RESPONSE + tmp_stringresp + Chr(13)



    Not sure of the last Chr(13)



    Sorry if i missed something.



    Markus