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
, array[]::text[]
, ''
, address
, city
, coalesce(address, '')
, coalesce(city, '')
, ''
, postal_code
, array[country_code::text]
, coalesce(postal_code, '')
, array[coalesce(country_code::text, '')]
, coalesce(email::text, '')
, coalesce(phone::text, '')
from booking

View File

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