Skip to content

Commit cef13f3

Browse files
committed
Only set building creator as current_person if it is unset
1 parent 3fab9d0 commit cef13f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/better_together/infrastructure/buildings/_fields.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%# locals: (form: ) %>
22
<div class="nested-fields my-3" data-new-record="<%= form.object.new_record? %>">
3-
<%= form.hidden_field :creator_id, value: current_person&.id %>
3+
<%= form.hidden_field :creator_id, value: current_person&.id unless form.object.creator_id %>
44

55
<div class="row">
66
<div class="col-12">

0 commit comments

Comments
 (0)