popularity macro shows decimal point at count

Issue #12 resolved
Tiffany C created an issue

Hi, I'm using the followings now. - Redmine 1.4.1 - redmine_wiki_extensions-0.4.0 - ruby 1.9.3 - rails 2.3.14.

When I use popularity macro, it shows decimal point, such as 11.0 and 30.0.

When I change lib/wiki_extensions_count_macro.rb, line 69 value[1] to value[1].to_i, it shows fine, but I don't know if it is the right change or not. Could you please check it?

Thank you very much.


Comments (5)

  1. Haruyuki Iida repo owner

    Hi Tiffany,

    I have checked the problem with Ruby 1.9.3-p194 , Redmine 1.4.1 and Wiki Extensions 0.4.0 but I couldn't reproduce it. It seems work fine.

    Could you show me an output of following command.

    ruby script/about

  2. Tiffany C reporter

    Hi Haru,

    Thank you very much for checking it. I'm also using ruby-1.9.3-p194. Here is the result of ruby script/about.

    About your application's environment
    Ruby version              1.9.3 (x86_64-linux)
    RubyGems version          1.8.24
    Rack version              1.1.3
    Rails version             2.3.14
    Active Record version     2.3.14
    Active Resource version   2.3.14
    Action Mailer version     2.3.14
    Active Support version    2.3.14
    Application root          /opt/redmine/xyz/redmine
    Environment               development
    Database adapter          mysql2
    Database schema version   20120301153455
    About your Redmine plugins
    Redmine Wiki Extensions plugin   0.4.0

    Let me attach how the popularity macro place looks like.

  3. Haruyuki Iida repo owner

    Thanks Tiffany-san,

    I found this problem depends on mysql2-adapter. I have changed an adapter from sqlite3 to mysql2. Then it has reproduced.

    Now I fixed the problem. Thank you very much.

  4. Tiffany C reporter


    I have checked it. It works perfectly now =)

    I appreciate your prompt response to this issue!

  5. Log in to comment