#68: Inconsistency between Tracker-Overview and Issues
Issue revisions
- new by Manuel Pichler at 2009-M-02 8:02
- new by Kore Nordmann at 2009-M-08 15:07
- new by Kore Nordmann at 2009-J-23 19:43
- closed by Kore Nordmann at 2009-A-04 17:02
| Type | |
|---|---|
| State | |
| Priority | |
| Resolution | |
| Assigned to | Nobody |
| Scheduled for | 0.2-alpha |
| Affected versions | 0.1-alpha, Latest SVN |
| Affected components | Modules / Tracker |
| Last change | Tuesday 4 August 2009 17:02:55 UTC by Kore Nordmann |
Short description
The Overview tables "Newest issues" and "Latest commented issues" show wrong data in "Last Changed" column, when the user hasn't set it's profile name. The column shows only the change date 1.1.1970 and no user name, but the Issues table shows the user's login name.
The issue list template has two fallbacks for the case that no author exists, fallback one will show the creator's IP and fallback two a fixed string, but because an issue author exists the fallbacks are never reached.
{if $issue->author}
// ...
{elseif $issue->ip}
// ...
{else}
// ...
{/if}
This template code should be changed to
{if $issue->author && $issue->author->name}
// ...
{elseif $issue->ip}
// ...
{else}
// ...
{/if}
The empty author name causes the 1.1.1970 behavior in the rendered table, because the regular expression does not match
// Find user reg = /<span[^>]+class="yui-hidden-data"[^>]*>(\d+);([^;]+)<\/span>/i;
Addon: Arbit should never show the login name of a user.
Steps to reproduce
-
Create a new user account
-
Activate it and do not enter a name
-
Create a new issue
-
Open the overview page
Expected behavior
Both tables "Newest issues" and "Issue listing" should show the current IP-address.
Actual behavior
-
"Newest issues" shows a wrong date and no user.
-
"Issue listing" shows the correct date and the user login.
Manuel Pichler at Tuesday 3 March 2009 21:09:25 UTC
User/screen name determination should be refactored from the real template into a separate template function.
Kore Nordmann at Sunday 8 March 2009 15:07:28 UTC
Fixed RST markup for enumerated lists.
Kore Nordmann at Thursday 23 July 2009 19:43:09 UTC
Scheduled for 0.2-alpha.
Kore Nordmann at Tuesday 4 August 2009 17:02:55 UTC
Fixed in revision #1215.