Skip to content

Commit

Permalink
Merge pull request #46 from coder-pm/devel-new-issue-fix
Browse files Browse the repository at this point in the history
Fix for issue #30 (javascript errors while adding new issue)
  • Loading branch information
speedy32129 authored Mar 28, 2019
2 parents 3802595 + 587a5e9 commit 43dc377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/time_loggers/_update_menu.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ the time tracker menu item using an AJAX request to retrieve the data
function updateTimeLoggerMenu() {
$.ajax({
url:"<%=url_for :controller => '/time_loggers',:action => 'render_menu' %>",
data:({<%= (@project.nil? ? nil : "project_id:#{@project.id},") %><%= (@issue.nil? ? nil : "issue_id:#{@issue.id}") %> }),
data:({<%= (@project.nil? ? nil : "project_id:#{@project.id}") %><%= ((@issue.nil? or @issue.id.nil?) ? nil : ", issue_id:#{@issue.id}") %>}),
cache:false,
success: function(data){
$('#time-logger-menu').html(data);
Expand Down

0 comments on commit 43dc377

Please sign in to comment.