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
|
, 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
|
||||||
|
|
|
@ -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 -}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue