mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Prevent select widget from loading when running setup-cli. Fixes travis failure.
This commit is contained in:
parent
40fe3c0ce2
commit
e52f3493f1
@ -335,9 +335,6 @@ class Widget
|
||||
*/
|
||||
public static function scanForWidgets()
|
||||
{
|
||||
//try fixing loading order by explicitly select widget to load first
|
||||
class_exists(__NAMESPACE__.'\Widget\Select');
|
||||
|
||||
$widget_registry = Api\Cache::getInstance('etemplate', 'widget_registry');
|
||||
|
||||
if (!$widget_registry) // not in instance cache --> rescan from filesystem
|
||||
|
@ -171,6 +171,7 @@ class calendar_hooks
|
||||
if (!isset($hook_data['setup']))
|
||||
{
|
||||
$times = Api\Etemplate\Widget\Select::typeOptions('select-hour', '');
|
||||
$default_cat_seloptions = Api\Etemplate\Widget\Select::typeOptions('select-cat', ',,,calendar');
|
||||
}
|
||||
for ($i = 2; $i <= 9; ++$i)
|
||||
{
|
||||
@ -368,7 +369,7 @@ class calendar_hooks
|
||||
'label' => 'New event category',
|
||||
'name' => 'default_category',
|
||||
'help' => 'Category automatically added to new events',
|
||||
'values' => Api\Etemplate\Widget\Select::typeOptions('select-cat', ',,,calendar'),
|
||||
'values' => $default_cat_seloptions,
|
||||
'default' => '',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
|
Loading…
Reference in New Issue
Block a user