|
|
|
@ -6,7 +6,6 @@ class OrganisationNameChangesController < ApplicationController
|
|
|
|
|
@organisation_name_change = @organisation.organisation_name_changes.new(organisation_name_change_params) |
|
|
|
|
@organisation_name_change.change_type = :user_change |
|
|
|
|
|
|
|
|
|
Rails.logger.debug "Params: #{params[:organisation_name_change]}" |
|
|
|
|
if @organisation_name_change.save |
|
|
|
|
notice_message = @organisation_name_change.immediate_change ? "Name change saved successfully." : "Name change scheduled for #{@organisation_name_change.formatted_startdate}." |
|
|
|
|
redirect_to organisation_path(@organisation), notice: notice_message |
|
|
|
|