Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2951 by Comment from "Add comment" always shows first function name

*** For customer support, please post to
*** If you have a patch, please submit it to
*** Do not post confidential information in this bug report!

What version are you running?
Review Board 1.6.3

What's the URL of the page containing the problem?

What steps will reproduce the problem?
1. Open a review in browser and go to Diff view.
2. Click on a line number to comment inside PHP class's function.
3. Add the comment and check the review.

What is the expected output? What do you see instead?
It should always give the actual function name as reference.

What operating system are you using? What browser?
Windows 7, Internet Explorer 9

Please provide any additional information below.
File reviewed is complete OO code file of PHP programming language. This is a new file created so the diff is from self only. The file contains namespace, class declaration with "extends" and interface "implements".
There are multiple functions in the class.

The problem seems to be that no matter on what function's line you comment on it will first function declaration as reference. And if you comment on first function then it will take class declaration as reference.

Something like his:


class myClass {

        public function __constrcut() {
                //      Do ABC
                //      Do XYZ
                //      Give 123

        public funciton abc() {
                //      Do something

                //      Again do something

                //      Again do something

        public function problem_is_here() {



And if I put a comment on "unset(self::$conn);" It will give something like this:

function __construct() {
73              unset(self::$conn);

        review-board-problem.jpd.jpg  15.0 KB

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to