Fix null problems
This commit is contained in:
parent
2299f2325e
commit
90d8247c0f
|
@ -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
|
||||
|
|
|
@ -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 -}}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue