Fix null problems

This commit is contained in:
jordi fita mas 2024-04-28 22:49:04 +02:00
parent 2299f2325e
commit 90d8247c0f
2 changed files with 5 additions and 5 deletions

View File

@ -275,11 +275,11 @@ func (f *ContactForm) FillFromBooking(ctx context.Context, conn *database.Conn,
, holder_name , holder_name
, array[]::text[] , array[]::text[]
, '' , ''
, address , coalesce(address, '')
, city , coalesce(city, '')
, '' , ''
, postal_code , coalesce(postal_code, '')
, array[country_code::text] , array[coalesce(country_code::text, '')]
, coalesce(email::text, '') , coalesce(email::text, '')
, coalesce(phone::text, '') , coalesce(phone::text, '')
from booking from booking

View File

@ -34,7 +34,7 @@
data-hx-include="this" data-hx-include="this"
data-hx-target="#booking-form-fields" data-hx-target="#booking-form-fields"
data-hx-replace-url="true" data-hx-replace-url="true"
{{- if .URL }} data-hx-put="{{ .URL }}" {{- if .ID }} data-hx-put="{{ .URL }}"
{{- else }} action="/admin/bookings" method="post" {{- else }} action="/admin/bookings" method="post"
{{- end -}} {{- end -}}
> >