Fix create_collection in FinancialTransactionsController
This commit is contained in:
parent
a2188cb6b8
commit
52323b98b8
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ class Finance::FinancialTransactionsController < ApplicationController
|
|||
|
||||
def create_collection
|
||||
raise I18n.t('finance.financial_transactions.controller.create_collection.error_note_required') if params[:note].blank?
|
||||
type = FinancialTransactionType.find_by_id(params.permit(:type))
|
||||
type = FinancialTransactionType.find_by_id(params[:type_id])
|
||||
params[:financial_transactions].each do |trans|
|
||||
# ignore empty amount fields ...
|
||||
unless trans[:amount].blank?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue