mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 15:29:17 +01:00
Make sure proper options are added for nextmatch-accountfilter
This commit is contained in:
parent
670cea582a
commit
ee32c2d82e
@ -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
|
// 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'));
|
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';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user