Project

General

Profile

Actions

Bug #1848

closed

xmera Omnia - Collection #1825: Bug fixing of diverse modules

Missing target projects on a system project level raises exception

Added by liaham over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Affected Version:
Compatible Redmine Version:

Description

A project serving to structure the hierarchy tree acts as system project. The system project itself has no target projects defined. Instead all sub projects have at least one target project defined.

As soon as the system project will have a target project defined the synchronization will be executed without error.

   plugins/redmine_issue_sync/app/models/sync_setting.rb:68:in `trackers_unset?'
  Rendered plugins/redmine_issue_sync/app/views/issue_sync/_form.html.erb (Duration: 160.8ms | Allocations: 101452)
  Rendered plugins/redmine_issue_sync/app/views/issue_sync/new.js.erb (Duration: 161.1ms | Allocations: 101582)
Completed 500 Internal Server Error in 373ms (ActiveRecord: 20.3ms | Allocations: 202440)


  
ActionView::Template::Error (undefined method `filter' for #<Synchronisation id: nil, target_id: 5, user_id: 1, created_at: nil, updated_at: nil>):
    1: <%= tag.div id: 'issue-sync-form' do %>
    2:   <%= form_for @synchronisation, url: project_issue_sync_index_path(@project), 
    3:         remote: show(@synchronisation).render_js?(@form) do |f| %>
    4:     <%= error_messages_for 'synchronisation' %>cts.status <> 9 AND EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em.name='issue_tracking')))) AND cf_69.value <> '' AND cf_69.id = (SELECT max(cf_69_2.id) FROM custom_values cf_69_2 WHERE cf_69_2.customized_type = cf_69.customized_type AND cf_69_2.customized_id = cf_69.customized_id AND cf_69_2.custom_field_id = cf_69.custom_field_id) WHERE (projects.status <> 9 AND EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em.name='issue_tracking')) AND ((issues.status_id IN (SELECT id FROM issue_statuses WHERE is_closed=FALSE)) AND (issues.tracker_id IN ('7')) AND ((1=1) AND (issues.tracker_id IN (SELECT tracker_id FROM custom_fields_trackers WHERE custom_field_id = 69)) AND (EXISTS (SELECT 1 FROM custom_fields ifa WHERE ifa.is_for_all = TRUE AND ifa.id = 69) OR issues.project_id IN (SELECT project_id FROM custom_fields_projects WHERE custom_field_id = 69)) AND (projects.status <> 9 AND EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em.name='issue_tracking'))) AND 
Actions

Also available in: Atom PDF