Notifications

124 views

Description

In the Knowledge Service Portal, all viewable articles are not displayed on the KB Category Page widget if the user fails user criteria for one or more articles in the category.

Steps to Reproduce

  1. Have at least 12 articles in a knowledge base under the same category.
  2. Add user criteria to one article that the test user will not pass.
  3. Impersonate test user and navigate to the service portal (sp) knowledge base.  On the KB Categories - KBv3 widget note the number of articles that are contained in the test category.
  4. Select the category and note that the Show More option does not render although the number of current records does not match then number on the KB Categories - KBv3 widget.
  5. Scope the widget data in the browser console and manually edit the showMore attribute and limit, to force the Show More to display on the widget.
  6. Select Show More and note more articles are rendered.

Workaround

1) Edit the KB Category Page widget. (Go to -> instance/sp_config?id=widget_editor&sys_id=fb5d068cd7610200a9ad1e173e24d400&spa=1)
2) In the Server script, AFTER the below line :

if (input && input.new_limit)
data.limit = input.new_limit;

ENTER the code below:

//CHANGE 1
if(input && input.new_total)
data.total=input.new_total;
//END

3) In the Server script, REPLACE :

if (diff <= 0)
data.showMore = false; 
else {
data.items.splice(data.limit);
data.showMore = true;
}

WITH the code below :

//CHANGE 2
if(!data.total)
data.total = $sp.getKBCategoryArticleSummaries(data.category, 0, 0).length; 
if (data.total <= data.limit)
data.showMore = false; 
else {
data.items.splice(data.limit);
data.showMore = true;
}
// END

4) Change 3: In the client script REPLACE the $scope.loadMore function with :

$scope.loadMore = function () {
c.data.new_limit = c.data.limit + (parseInt(c.options.limit_article) || 10);
//CHANGE 3
c.data.new_total = c.data.total;
//END
c.server.update();
}


Related Problem: PRB1345917

Seen In

SR - PAR - Performance Analytics Content Pack for Guided Tours - v1.0.1
SR - Security - Integration Framework - Madrid 2019 Q2
SR - Security - Support Common - Madrid 2019 Q2
SR - Security - Support Orchestration - Madrid 2019 Q2
SR - SIR - Qradar SIEM Integration - Madrid 2019 Q1
SR - SIR - Security Incident Response - Madrid 2019 Q2
SR - SIR - Security Incident Response UI Patch - London 2019 Q2 v.6.2.3
SR - VR - Qualys - New York 2019 Q3
SR - VR - Solution Management Madrid Q2
SR - VR - Vulnerability Response - New York 2019 Q3

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-11-07 17:39:56
Published:2019-10-25