Skip to content

Commit

Permalink
Fix issue with start_date not being set in account creation (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
scubamaggo authored May 20, 2024
1 parent 8654a98 commit 444155c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/accounts/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<%= f.text_field :name, placeholder: t(".name.placeholder"), required: "required", label: t(".name.label"), autofocus: true %>
<%= render "accounts/#{permitted_accountable_partial(@account.accountable_type)}", f: f %>
<%= f.money_field :balance_money, label: t(".balance.label"), required: "required" %>
<%= f.date_field :date, label: t(".start_date.label"), required: true, max: Date.today, value: Date.today %>
<%= f.date_field :start_date, label: t(".start_date.label"), required: true, max: Date.today, value: Date.today %>
</div>
<%= f.submit "Add #{@account.accountable.model_name.human.downcase}" %>
<% end %>
Expand Down

0 comments on commit 444155c

Please sign in to comment.