grinnellplans / grinnellplans-php

Automatically exported from code.google.com/p/grinnellplans
Other
7 stars 7 forks source link

lack of id attribute in notes posts breaks anchored links #267

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Ensure you're using the postmodern interface.
2. Navigate to this URL: 
https://www.grinnellplans.com/board_messages.php?messagenum=59182#59182
3. Notice that your browser did not jump to post #59182.

Other pertinent information (browser version, revision number, etc):

This is a blind hack but maybe fixes it?

Index: views/templates/tableless/NotesPost.tpl.php
===================================================================
--- views/templates/tableless/NotesPost.tpl.php (revision 631)
+++ views/templates/tableless/NotesPost.tpl.php (working copy)
@@ -1,4 +1,4 @@
-<div class="notes_post <?php echo $this->list_attributes; ?>">
+<div class="notes_post <?php echo $this->list_attributes; ?>" id="<?php echo 
$this->post_id; ?>">
        <div class="notes_post_header">
                <div class="post_id"><?php echo $this->post_id; ?></div>
                <div class="post_author">[<?php echo $this->post_author_template->display(); ?>]</div>

Original issue reported on code.google.com by saul.stj...@gmail.com on 10 Jan 2015 at 12:22