From ee32c2d82ec97d708bb6c9e9c8d46263ddfcef1f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 6 Jun 2012 16:17:44 +0000 Subject: [PATCH] Make sure proper options are added for nextmatch-accountfilter --- .../inc/class.etemplate_widget_nextmatch.inc.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php index a0d82f6274..bbdd39092d 100644 --- a/etemplate/inc/class.etemplate_widget_nextmatch.inc.php +++ b/etemplate/inc/class.etemplate_widget_nextmatch.inc.php @@ -767,3 +767,17 @@ class etemplate_widget_nextmatch extends etemplate_widget // Registration needs to go here, otherwise customfields won't be loaded until some other cf shows up etemplate_widget::registerWidget('etemplate_widget_customfields', array('nextmatch-customfields')); + + +/** + * Extend selectbox and change type so proper users / groups get loaded, according to preferences + */ +class etemplate_widget_nextmatch_accountfilter extends etemplate_widget_menupopup +{ + public function set_attrs($xml) + { + parent::set_attrs($xml); + $this->attrs['type'] = 'select-account'; + } +} +