Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Повторное использование параметров прошлого объекта при создании нового #16

dext0r opened this issue Mar 14, 2014 · 1 comment


Copy link

dext0r commented Mar 14, 2014

Как воспроизвести:

  1. Делаем задачу:
issue_1 =
issue_1.project_id = 1
issue_1.tracker_id = 2
issue_1.subject = 'Issue 1'
issue_1.description = 'Issue 1'

В redmine отправляется:

  Parameters: {"issue"=>{"description"=>"Issue 1", "tracker_id"=>2, "subject"=>"Issue 1"}, "key"=>"...", "project_id"=>"1"}

Создаем новую задачу, зададим у неё только subject и сохраним её:

issue_2 =
issue_2.subject = 'Issue 2'

В redmine отправляется:

Parameters: {"issue"=>{"description"=>"Issue 1", "tracker_id"=>2, "subject"=>"Issue 2"}, "key"=>"...", "project_id"=>"1"}

Все параметры, которые не были переопределены для нового объекта issue_2 были "скопированы" с объекта issue_1, чего на мой взгляд быть не должно.

maxtepkeev added a commit that referenced this issue Mar 14, 2014
@maxtepkeev maxtepkeev added the bug label Mar 14, 2014
@maxtepkeev maxtepkeev self-assigned this Mar 14, 2014
Copy link

Исправлено в версии 0.7.1. Спасибо за баг репорт!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants