fix C&P error

pull/3275/head
Jan Sandbrink 9 years ago
parent 3f5c346aa5
commit 1452111946
  1. 2
      lib/api/v3/work_packages/work_packages_api.rb

@ -84,7 +84,7 @@ module API
def save_work_package(work_package)
if work_package.save
journals = ::Journal::AggregatedJournal.aggregated_journals(
journable: represented)
journable: work_package)
Activities::ActivityRepresenter.new(journals.last, current_user: current_user)
else
fail ::API::Errors::ErrorBase.create_and_merge_errors(work_package.errors)

Loading…
Cancel
Save