Support Article
Correspondence rule automatically adds <table> tag in source
SA-9941
Summary
If you save and refresh or reopen a correspondence rule, the system automatically adds a <table> tag into the source code.
Error Messages
Not Applicable
Steps to Reproduce
1. Create an email correspondence rule.
2. Open the rule.
3. Save the rule.
4. Refresh the rule.
5. Check the source by clicking on the source button and observe that the system automatically adds a <table> tag into the source code.
Root Cause
On every save of a correspondence rule the activity "Validate" of class "Rule-Obj-Corr" in the PegaMKT-Engine:07-12-01 ruleset is called. The tag is added by step 13 of that activity. Here is the code of that step:
String sourceStream = myStepPage.getString("pySourceStream");
if(!sourceStream.toLowerCase().contains("<table id=wordmerge")){
sourceStream = sourceStream + "<table id=wordmerge><tr><td style='padding:0 0 0 0;border:none;'></td></tr></table>";
}
myStepPage.putString("pySourceStream", sourceStream);
Resolution
The issue is corrected by installing HFix-21916.
Tags:
Published June 12, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.