https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292006-12-31T17:29:00ZRedmineRedmine - Defect #2: Listing 5 projects on Welcome pagehttps://www.redmine.org/issues/2?journal_id=82006-12-31T17:29:00ZTodd McGrath
<ul></ul><p>Jean-Philippe,</p>
<p>I'll attach two patch files that solved it<br />(project.rb-PATCH.txt and welcome_controller.rb-PATCH.txt).<br /> What do you think? (I'm coming from Java and trying to<br />learn more Ruby/Rails. I'm not very confident in Ruby yet<br />and appreciate any feedback)</p>
<p>Todd</p> Redmine - Defect #2: Listing 5 projects on Welcome pagehttps://www.redmine.org/issues/2?journal_id=72007-01-01T04:20:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Happy new year Todd !<br />I've corrected this bug, with a slight different solution (your<br />code was good but i prefer not to add a join).<br />I've modified "Latest news" too so that they are displayed<br />according to user's membership.<br />Just a thing about your code: don't forget that logged_in_user<br />can be nil (if nobody's logged).</p>
<p>Best regards,</p>
<p>Jean-Philippe</p>