Adds journal note on planning element update

pull/855/head
Hagen Schink 11 years ago
parent f3309b6e8b
commit 936b902f63
  1. 4
      app/controllers/api/v2/planning_elements_controller.rb

@ -91,7 +91,9 @@ module Api
def update
@planning_element = WorkPackage.find(params[:id])
@planning_element.attributes = permitted_params.planning_element
@planning_element.attributes = permitted_params.planning_element.except :note
@planning_element.add_journal(User.current, permitted_params.planning_element[:note])
successfully_updated = @planning_element.save

Loading…
Cancel
Save