handle non existent param

pull/4862/head
Jens Ulferts 8 years ago
parent 7f81eb4f3b
commit 1c5e73a993
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 4
      app/controllers/project_associations_controller.rb

@ -96,7 +96,9 @@ class ProjectAssociationsController < ApplicationController
@project_association = @project.project_associations.find(params[:id])
check_visibility
@project_association.description = params[:project_association][:description]
if params[:project_association]
@project_association.description = params[:project_association][:description]
end
check_visibility # since projects may not be edited by mass-assignement,
# this check should be superfluous ... but who knows?!?

Loading…
Cancel
Save