robogals / myrobogals

myRobogals is the global intranet and record-keeping tool for Robogals. It has been built to simplify many of our day-to-day tasks including organising school visits, maintaining a member database, communicating with members, storing records reliably for future generations and easily collecting statistics on a global scale.
https://my.robogals.org
10 stars 21 forks source link

Wrong chapter shown in forums for regular member #61

Closed U-238 closed 11 years ago

U-238 commented 11 years ago

For regular members (who don't have a position) the wrong chapter name is shown under their name. Example: https://my.robogals.org/forums/topic/27/

yfcheung commented 11 years ago
diff --git a/rgtemplates/topic_view.html b/rgtemplates/topic_view.html
index 9025e0c..5fc9225 100644
--- a/rgtemplates/topic_view.html
+++ b/rgtemplates/topic_view.html
@@ -52,7 +52,7 @@
                {% for cur_position in post.1.posted_by.cur_positions %}
                <br /><span style="font-size: 9pt"><em>{{cur_position.positionType}}<br />{{cur_position.positionChapter}}</em></span>
                {% empty %}
-               <br /><em>{{request.user.chapter}}</em>
+               <br /><em>{{post.1.posted_by.chapter}}</em>
                {% endfor %}
                <br />{{post.3}}<br />{% trans "Posts:" %} {{ post.2 }}</td>

Did I do that? (I should have designed a better semantic abstraction to avoid confusion)

manhinli commented 11 years ago

This is no longer an issue? Closing.