Proyecto

General

Perfil

Defect #1504

Move pbi js, issue in source code

Añadido por Redmine Smile hace 7 meses.

Estado:
New
Prioridad:
Normal
Categoría:
Sprint board
Versión prevista:
-
Source:
Customer
Detected on version:
Blocked:
No
Alone:
No
Hitos:
Sprint:

Descripción

As you can see in app/views/scrum/move_pbi.js.erb, @position value different from top are not accessible because of first elsif :

<%- if defined?(@exception) -%>
  <%- message = l(:error_updating_pbi, :message => @exception.message)
      message_class = 'error' -%>
  $("#popup-messages").html("<div class=\"flash <%= message_class %>\"><%= message %></div>");
<%- elsif @position == 'top' -%>
  $("#popup-messages").html("");
  <%- if @position == 'top' -%>
    $("#<%= "pbi_#{@pbi.id}" %>").parent().prepend($("#<%= "pbi_#{@pbi.id}" %>"));
  <%- elsif @position == 'bottom' -%>
    $("#<%= "pbi_#{@pbi.id}" %>").parent().append($("#<%= "pbi_#{@pbi.id}" %>"));
  <%- elsif @position == 'before' -%>
    $("#ajax-modal").dialog("close");
    $("#<%= "pbi_#{@other_pbi}" %>").before($("#<%= "pbi_#{@pbi.id}" %>"));
  <%- elsif @position == 'after' -%>
    $("#ajax-modal").dialog("close");
    $("#<%= "pbi_#{@other_pbi}" %>").after($("#<%= "pbi_#{@pbi.id}" %>"));
  <%- else -%>
    console.log("Invalid position: <%= @position.inspect %>");
  <%- end -%>
<%- end -%>

Exportar a: Atom PDF