summaryrefslogtreecommitdiffstats
path: root/includes/view-helpers/class-giglogadmin-concertform.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-03-07 22:34:34 +0100
committerHarald Eilertsen <haraldei@anduin.net>2023-03-07 22:34:34 +0100
commit1c6be6b8a5724f5a4162168241062abded4635e7 (patch)
tree92f42673f04046a35ef8433a1efff60c5dd4e020 /includes/view-helpers/class-giglogadmin-concertform.php
parent30b731c4cf5a1233f926dea2ef643d9d920afd89 (diff)
downloadgigologadmin-1c6be6b8a5724f5a4162168241062abded4635e7.tar.gz
gigologadmin-1c6be6b8a5724f5a4162168241062abded4635e7.tar.bz2
gigologadmin-1c6be6b8a5724f5a4162168241062abded4635e7.zip
Always render date in concert form.
A concert object will always have a valid date (today) if nothing else is specified, so no reason to check for unset dates anymore.
Diffstat (limited to 'includes/view-helpers/class-giglogadmin-concertform.php')
-rw-r--r--includes/view-helpers/class-giglogadmin-concertform.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/view-helpers/class-giglogadmin-concertform.php b/includes/view-helpers/class-giglogadmin-concertform.php
index cf7a466..93222c3 100644
--- a/includes/view-helpers/class-giglogadmin-concertform.php
+++ b/includes/view-helpers/class-giglogadmin-concertform.php
@@ -66,7 +66,7 @@ if ( ! class_exists( 'GiglogAdmin_ConcertForm' ) ) {
. '<label for="venue">Venue:</label>' . $this->get_venue_selector( $c->venue() ) . '<br>'
// date has to be formatted else it is not red in the date field of html form
. '<label for="cdate">Date:</label>'
- . '<input type="date" id="cdate" name="cdate" value="' . esc_attr( $c->cdate()->format( 'Y-m-d' ) ?? '' ) . '"><br>'
+ . '<input type="date" id="cdate" name="cdate" value="' . esc_attr( $c->cdate()->format( 'Y-m-d' ) ) . '"><br>'
. '<label for="ticket">Tickets:</label>'
. '<input type="text" id="ticket" name="ticket" value="' . esc_url( $c->tickets() ) . '"><br>'
. '<label for="eventurl">Event link:</label>'