mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Update WidgetAreaEditor.php
This commit is contained in:
parent
4dccc49a41
commit
ac1c1dabc8
@ -50,6 +50,7 @@ class WidgetAreaEditor extends FormField
|
||||
unset($classes[0]);
|
||||
}
|
||||
|
||||
if( isset($classes) ){
|
||||
foreach ($classes as $class) {
|
||||
$available = Config::inst()->get($class, 'only_available_in');
|
||||
|
||||
@ -62,6 +63,7 @@ class WidgetAreaEditor extends FormField
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $widgets;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user