From c3d48a91b633a3462096015bd1e2553ec3fe0b9e Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 18 Aug 2015 09:25:16 -0500 Subject: [PATCH] task: Fix crash if missing cdata table --- include/staff/tasks.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/staff/tasks.inc.php b/include/staff/tasks.inc.php index 4b0b333c9..2307d1975 100644 --- a/include/staff/tasks.inc.php +++ b/include/staff/tasks.inc.php @@ -2,6 +2,9 @@ $tasks = Task::objects(); $date_header = $date_col = false; +// Make sure the cdata materialized view is available +TaskForm::ensureDynamicDataView(); + // Figure out REFRESH url — which might not be accurate after posting a // response list($path,) = explode('?', $_SERVER['REQUEST_URI'], 2); -- GitLab