Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

River misformats pre-Elgg 1.7 group forum topic and comment posts (Trac #2498) #2498

Closed
elgg-gitbot opened this issue Feb 16, 2013 · 3 comments
Labels
Milestone

Comments

@elgg-gitbot
Copy link

Original ticket http://trac.elgg.org/ticket/2498 on 40748569-10-18 by trac user kevinjardine, assigned to unknown.

Elgg version: 1.7

A client complained after an upgrade to Elgg 1.7.x that group forum topics and posts were mis-formatted in the river.

This turned out to be caused by an annotation id of 0 in the river table. For new content, the river displays an excerpt of the annotation before the friendly time. But for older content, the annotation id is 0 and the annotation is blank. However, the river_content_display div is generated anyway, mysteriously forcing the friendly time to a new line even if it would have fit in the line above.

I have fixed this by changing the code in

views/default/river/forum/create.php

to

if ($contents) {
        $string .= "<div class=\"river_content_display\">";
        $string .= elgg_get_excerpt($contents, 200);
        $string .= "</div>";
    }

In other words, I only generate the div if there is something to display.

@elgg-gitbot
Copy link
Author

Milestone changed to Elgg 1.7.4 by cash on 40748731-03-11

@elgg-gitbot
Copy link
Author

cash wrote on 40748766-08-02

(In [svn:6982]) Fixes #2498 - checking for existence of comment text before displaying

@elgg-gitbot
Copy link
Author

cash wrote on 40803593-10-22

(In [svn:7105]) Refs #2498 - merged [svn:6982] into trunk from 1.7 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant