Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 197
Join Date: Oct 2007
Location: Jakarta, Indonesia
Exclamation Icons in Staff CP, Knowledgebase Quick Jump are missing! - 08-04-2008, 05:00 PM

I'm using CVS 3.20.02 from about April 4th, and I recently noticed that my KB Quick Jump icons are not loading. These are the icons that should indicate the status of the KB article, whether published, private, or draft.

I've traced the general area to the function processMenuKBArticles in modules/knowledgebase/functions_knowledgebase.php, where I see the following bit of code:

PHP Code:
if ($childdata["articlestatus"] == ARTICLE_PUBLISHED)
{
    
$aimage "icon_menukbarticle.gif";
} else if (
$childdata["articlestatus"] == ARTICLE_DRAFT) {
    
$aimage "icon_menukbdraft.gif";
} else if (
$childdata["articlestatus"] == ARTICLE_PRIVATE) {
    
$aimage "icon_menukbprivate.gif";

So $childdata["articlestatus"] is clearly empty here. I can "fix" this by adding an extra else as follows:

PHP Code:
if ($childdata["articlestatus"] == ARTICLE_PUBLISHED)
{
    
$aimage "icon_menukbarticle.gif";
} else if (
$childdata["articlestatus"] == ARTICLE_DRAFT) {
    
$aimage "icon_menukbdraft.gif";
} else if (
$childdata["articlestatus"] == ARTICLE_PRIVATE) {
    
$aimage "icon_menukbprivate.gif";
} else {
    
$aimage "icon_menukbarticle.gif";

Of course, I still don't see the actual status of the article.

Has anyone else noticed this issue, and/or have a fix?


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#2) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 197
Join Date: Oct 2007
Location: Jakarta, Indonesia
08-04-2008, 05:40 PM

A little more info on this.

My server log gives the following 2 errors:

Quote:
PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in .../functions_knowledgebase.php
which points to this on line 726:

PHP Code:
$_option[$index]["selected"] = iif(in_array($childdata["kbcategoryid"], $selectedcatid), truefalse); 
and this on line 699:

Quote:
$_option[0]["selected"] = iif(in_array(0, $selectedcatid), true, false);
I can't make heads or tales of this, not being too PHP/SQL savvy.


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
Reply

Tags
icons, jump, knowledgebase, missing, quick, staff

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Template Groups - A Tutorial Matthew How do I? 6 06-01-2009 11:00 PM
Knowledgebase Knowledgebase -> Overhauled knowledgebase use for staff kpjam Will Implement (V4) 26 06-10-2008 07:47 AM
Knowledgebase Staff CP -> Sort by Knowledgebase category when listing Aaron Feature Requests 0 16-11-2007 08:32 PM
View knowledgebase from within staff CP aabramson SupportSuite, eSupport and LiveResponse 4 13-11-2006 03:28 PM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48