[Rt-commit] rt branch, 4.2/id-on-anchor-link, created. rt-4.1.5-47-g437b33e

Alex Vandiver alexmv at bestpractical.com
Fri Dec 14 19:01:18 EST 2012


The branch, 4.2/id-on-anchor-link has been created
        at  437b33e7d8773abcec1b80654a7f9e919ca54a4b (commit)

- Log -----------------------------------------------------------------
commit 437b33e7d8773abcec1b80654a7f9e919ca54a4b
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Dec 14 18:59:55 2012 -0500

    Include the required id on the DisplayPath for anchors
    
    DisplayPath, like all of the other *Path arguments, does not include the
    id of the object in question; this breaks the '#' anchor links in
    history.  Append the id, as required.

diff --git a/share/html/Elements/ShowTransaction b/share/html/Elements/ShowTransaction
index 271d608..3b488f2 100644
--- a/share/html/Elements/ShowTransaction
+++ b/share/html/Elements/ShowTransaction
@@ -50,7 +50,7 @@
     <span class="type">
       <a name="txn-<% $Transaction->id %>" \
 % if ( $DisplayPath ) {
-      href="<% $DisplayPath %>#txn-<% $Transaction->id %>" \
+      href="<% $DisplayPath %>?id=<% $Object->id %>#txn-<% $Transaction->id %>" \
 % }
       >#</a>
     </span>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list