diff options
author | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-09-04 21:36:25 +0200 |
---|---|---|
committer | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-09-04 21:36:25 +0200 |
commit | 88244b19533163564098057c75952deffc7dc13e (patch) | |
tree | 3b1c1a848039324029338b36f894b6d04a4cd86c /includes | |
parent | df6eca59b3a6c33f6135f26a21dfa179ee1414e2 (diff) | |
download | gigologadmin-88244b19533163564098057c75952deffc7dc13e.tar.gz gigologadmin-88244b19533163564098057c75952deffc7dc13e.tar.bz2 gigologadmin-88244b19533163564098057c75952deffc7dc13e.zip |
Fixed a call to city() method in concert.php It needed ->venue->city
Added order by concert date in concert list
Diffstat (limited to 'includes')
-rw-r--r-- | includes/admin/views/giglog_admin_page.php | 2 | ||||
-rw-r--r-- | includes/concert.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/includes/admin/views/giglog_admin_page.php b/includes/admin/views/giglog_admin_page.php index dfea3fd..ce0031c 100644 --- a/includes/admin/views/giglog_admin_page.php +++ b/includes/admin/views/giglog_admin_page.php @@ -223,7 +223,7 @@ if ( !class_exists( 'GiglogAdmin_AdminPage' ) ) { $content .= '<tr class="assignitr">'; if ($lastType != '' && $lastType != $concert->venue()->city()) { - $content .= '<td>' . $concert->city() . '</td></tr><tr>'; + $content .= '<td>' . $concert->venue()->city() . '</td></tr><tr>'; } if ($lastType == '' ) { diff --git a/includes/concert.php b/includes/concert.php index a533679..8210b2d 100644 --- a/includes/concert.php +++ b/includes/concert.php @@ -85,6 +85,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) { $query = self::BASE_QUERY . 'WHERE ' . $wpdb->prepare('wpg_concerts.id = %d', $id); + $query.= ' ORDER BY wpgconcert_date'; $results = $wpdb->get_results($query); @@ -219,6 +220,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) { if ( ! empty( $where ) ) { $query .= 'WHERE ' . implode(' and ', $where); } + $query.= ' ORDER BY wpgconcert_date'; $results = $wpdb->get_results($query); |