Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to FAQ in ticket view #395

Open
jeffchulg opened this issue Nov 27, 2012 · 1 comment
Open

Link to FAQ in ticket view #395

jeffchulg opened this issue Nov 27, 2012 · 1 comment

Comments

@jeffchulg
Copy link

Would it be possible to put a link depending on the help topic which would redirect to the list of faqs for that help topic (and its nested help topics) in 1.7 release ?

@jeffchulg
Copy link
Author

Here is the code to put in "include/staff/ticket-view.inc.php" (starting at line 238):

            <tr>
                <th width="100">Help Topic:</th>
                <td>
                    <a href="/scp/kb.php?a=search&q=&cid=&topicId=<?php echo $ticket->getTopicId()?>">
                        <?php echo Format::htmlchars($ticket->getTopic()->getName());?>
                    </a>
                </td>
            </tr>

An alternative to get topic's name could be to change "getHelpTopic()" function of the Ticket class to do $ticket->getTopic()->getName()); in a good way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant