mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch '3.6' into 3
This commit is contained in:
commit
4ca96eae48
@ -1,5 +1,7 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
|
dist: precise
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
@ -104,8 +104,6 @@ class GridField extends FormField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->setConfig($config);
|
$this->setConfig($config);
|
||||||
|
|
||||||
$this->config->addComponent(new GridState_Component());
|
|
||||||
$this->state = new GridState($this);
|
$this->state = new GridState($this);
|
||||||
|
|
||||||
$this->addExtraClass('ss-gridfield');
|
$this->addExtraClass('ss-gridfield');
|
||||||
@ -177,6 +175,10 @@ class GridField extends FormField {
|
|||||||
public function setConfig(GridFieldConfig $config) {
|
public function setConfig(GridFieldConfig $config) {
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
|
if (!$this->config->getComponentByType('GridState_Component')) {
|
||||||
|
$this->config->addComponent(new GridState_Component());
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user