From 83c82023742ed9b814153dd1255983d97d0ba53b Mon Sep 17 00:00:00 2001 From: Arlen Walker Date: Thu, 15 Feb 2018 13:43:15 -0600 Subject: [PATCH] Add the category description This will pick up the category description and make it available to the output of the module. No effect on backwards compatibility, as it doesn't change what exists now, merely adds one more attribute. Use Case: When you're choosing to output subcategories, it might be useful in some cases to have more than just the category name available. Output templates that don't need it can ignore it safely, but this makes it available for the templates that might want to use it. --- src/modules/mod_weblinks/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mod_weblinks/helper.php b/src/modules/mod_weblinks/helper.php index 78a27ce..553726b 100644 --- a/src/modules/mod_weblinks/helper.php +++ b/src/modules/mod_weblinks/helper.php @@ -83,7 +83,7 @@ class ModWeblinksHelper $model->setState( 'list.select', - 'a.*, c.published AS c_published,' . $case_when1 . ',' . $case_when2 . ',' . 'DATE_FORMAT(a.created, "%Y-%m-%d") AS created' + 'a.*, c.description AS c_description, c.published AS c_published,' . $case_when1 . ',' . $case_when2 . ',' . 'DATE_FORMAT(a.created, "%Y-%m-%d") AS created' ); $model->setState('filter.c.published', 1);