Skip to content

Commit 05489e5

Browse files
committed
MAGETWO-37934: Cannot create customer from admin
- Fix formatting due code review
1 parent 64b02a1 commit 05489e5

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

app/code/Magento/Ui/Component/AbstractComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function prepareDataSource(array & $dataSource)
234234
}
235235

236236
/**
237-
* @return array
237+
* {@inheritdoc}
238238
*/
239239
public function getDataSourceData()
240240
{

app/code/Magento/Ui/Component/Form.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,25 @@ public function getComponentName()
2525
}
2626

2727
/**
28-
* @inheritdoc
28+
* {@inheritdoc}
2929
*/
3030
public function getDataSourceData()
3131
{
3232
$dataSource = [];
3333
$id = $this->getContext()->getRequestParam($this->getContext()->getDataProvider()->getRequestFieldName());
34-
if ($id) { // case form
34+
35+
if ($id) {
3536
$this->getContext()->getDataProvider()
3637
->addFilter($this->getContext()->getDataProvider()->getPrimaryFieldName(), $id);
3738
}
3839
$data = $this->getContext()->getDataProvider()->getData();
40+
3941
if (isset($data[$id])) {
4042
$dataSource = [
4143
'data' => $data[$id]
4244
];
4345
}
46+
4447
return $dataSource;
4548
}
4649
}

app/code/Magento/Ui/Component/Listing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getComponentName()
3232
}
3333

3434
/**
35-
* @inheritdoc
35+
* {@inheritdoc}
3636
*/
3737
public function getDataSourceData()
3838
{

lib/internal/Magento/Framework/View/Element/UiComponentInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ public function prepare();
118118
public function prepareDataSource(array & $dataSource);
119119

120120
/**
121+
* Returns Data Source data
122+
*
121123
* @return array
122124
*/
123125
public function getDataSourceData();

0 commit comments

Comments
 (0)