Giter Site home page Giter Site logo

Comments (3)

LuisSerrano avatar LuisSerrano commented on August 19, 2024

if I delete the lines 19-20 and 31-49 redmine works fine, It's something about the relations

from redmine_better_gantt_chart.

LuisSerrano avatar LuisSerrano commented on August 19, 2024

sorry I accidentally closed the issue

from redmine_better_gantt_chart.

LuisSerrano avatar LuisSerrano commented on August 19, 2024

Solved I think, I modify the file issues_helper.rb the methods unless issue.relations_to.empty? and unless issue.relations_from.empty? with two ifs if (rel.issue_from) and if (rel.issue_to)

unless issue.relations_to.empty?
  content += "<br />" + issue.relations_to.first(display_limit).map do |rel|
  if (rel.issue_from)
    "<strong>#{l(rel.label_for(issue))}</strong>: #{link_to_issue(rel.issue_from)}"
  end 
  end.join("<br />")
  display_limit -= issue.relations_to.count 
end

unless issue.relations_from.empty?
  new_limit = display_limit < 0 ? 0 : display_limit
  content += "<br />" + issue.relations_from.first(new_limit).map do |rel|
    if (rel.issue_to)
       "<strong>#{l(rel.label_for(issue))}</strong>: #{link_to_issue(rel.issue_to)}"
     end
  end.join("<br />")
  display_limit -= issue.relations_from.count
end

from redmine_better_gantt_chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.