From 74c9e493733d015f342570a208fa54ebba3f988c Mon Sep 17 00:00:00 2001 From: Cecilia Vela Gurovic Date: Mon, 15 Oct 2018 12:05:59 +1300 Subject: [PATCH] Bug 1797812: show latest privacy statement in logged out privacy page behatnotneeded Change-Id: I163cb13a77e03fdbdf21c27bace787e104383a2f (cherry picked from commit 3ccc3e54f6971d51e0107de931f39d538009ac7c) (cherry picked from commit 69a964a581c8d259071380e809b15e0ab688a946) --- htdocs/legal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/legal.php b/htdocs/legal.php index 30cd09de45..36d6f4144b 100644 --- a/htdocs/legal.php +++ b/htdocs/legal.php @@ -23,7 +23,7 @@ $termscontent = get_field_sql(" FROM {site_content_version} s WHERE s.institution = ? AND s.type = 'termsandconditions' - ORDER BY s.version DESC + ORDER BY s.id DESC LIMIT 1", array('mahara')); $sections[] = array( @@ -38,7 +38,7 @@ $privacycontent = get_field_sql(" FROM {site_content_version} s WHERE s.institution = ? AND s.type = 'privacy' - ORDER BY s.version DESC + ORDER BY s.id DESC LIMIT 1", array('mahara')); $sections[] = array( -- GitLab