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

Closed
dext0r opened this Issue Mar 14, 2014 · 1 comment

Comments

2 participants
@dext0r

dext0r commented Mar 14, 2014

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

  1. Делаем задачу:
issue_1 = redmine.issue.new()
issue_1.project_id = 1
issue_1.tracker_id = 2
issue_1.subject = 'Issue 1'
issue_1.description = 'Issue 1'
issue_1.save()

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

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

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

issue_2 = redmine.issue.new()
issue_2.subject = 'Issue 2'
issue_2.save()

В 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

@maxtepkeev

This comment has been minimized.

Owner

maxtepkeev commented Mar 14, 2014

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

@maxtepkeev maxtepkeev closed this Mar 14, 2014

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