mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Improve robustness of some of the widget definition
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65190 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
572f6728fb
commit
fab14c4b18
@ -7,9 +7,12 @@
|
||||
*/
|
||||
class Widget extends DataObject {
|
||||
static $db = array(
|
||||
"ParentID" => "Int",
|
||||
"Sort" => "Int"
|
||||
);
|
||||
|
||||
static $has_one = array(
|
||||
"Parent" => "WidgetArea",
|
||||
);
|
||||
|
||||
static $default_sort = "Sort";
|
||||
|
||||
|
@ -12,7 +12,7 @@ class WidgetArea extends DataObject {
|
||||
);
|
||||
|
||||
function forTemplate() {
|
||||
return $this->renderWith("WidgetArea");
|
||||
return $this->renderWith($this->class);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user