13 views

Description

The publishKnowledge function in KBWorkflowSNC Script Include sets published date/time to wrong object.

It is setting it on knowledgeGR instead of kbKnowledgeGR.

Steps to Reproduce

  1. Open KBWorkflowSNC script include
  2. Find the publishKnowledge function

    Notice the line where the published date/time field is set, it tries to set that on a knowledgeGR object, rather than the correct one, kbKnowledgeGR:

Fuji version:
publishKnowledge: function(kbKnowledgeGR) {
kbKnowledgeGR.workflow_state = "published";
kbKnowledgeGR.retired = "";
knowledgeGR.published = new GlideDate();

return true;
},

Expected version:
publishKnowledge: function(kbKnowledgeGR) {
kbKnowledgeGR.workflow_state = "published";
kbKnowledgeGR.retired = "";
kbKnowledgeGR.published = new GlideDate();
return true;
},

Workaround

There is no known workaround for this issue. If you are able to upgrade, review the Fixed In field to determine the versions that have a permanent fix to this issue. You can subscribe to this known error article (click the Subscribe button at the top of the article) to receive notifications when more information is available about this issue.


Related Problem: PRB649113

Seen In

Fuji Patch 8
Fuji Patch 9
Fuji Patch 9 Hot Fix 1

Fixed In

Fuji Patch 10

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-05-21 07:01:09
Published:2018-05-21