Messages.php links to documents inconsistent 6.0, 6.1

Situation
some documents linked to messages are not displayed: links do not work

OpenEMR Version
I’m using OpenEMR version 6.1 (but has been a problem since 6.0)

Browser:
I’m using: Firefox, Chrome, under Linux (also happens with Windows)

Operating System
I’m using: Linux and Windows

Logs
Did you check the logs? yes, previously
Was there anything pertinent in them? Yes: unable to track document if pubpid is null or blank
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All

Updated to 6.1, and along came with the package, a new version of …/openemr/interface/main/messages/messages.php which I have had to modify since version 6.0.0.

Specifically the following line: 587 where I have to replace “pubpid” with “pid” for the document link to work.

More specifically: … attr(addslashes($prow[‘pubpid’])) → … attr(addslashes($prow[‘pid’]))

If there is something else in my setup that is causing this to not work with the above change, please clue me in!
Thank you,
Mark Sarnov, MD

@Mark_Sarnov
I appreciate you posting these issues as you have. Whether we get to fixing them in a reasonable time, it still helps other knowing they aren’t the only ones.

ok, see it on row 507, will fix this in a soon to be pushed PR to fix various 6.1.0 bugs that you and others have reported, thank you

here’s the issue and PR is up