Skip to content

Commit 00f3748

Browse files
committed
MAGETWO-60746: [GITHUB] Edit default store view will stop saying that Default store cannot be disabled #7349
- codestyle fixes
1 parent 1b6320e commit 00f3748

File tree

1 file changed

+0
-6
lines changed
  • app/code/Magento/Backend/Block/System/Store/Edit/Form

1 file changed

+0
-6
lines changed

app/code/Magento/Backend/Block/System/Store/Edit/Form/Store.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ protected function _prepareStoreFieldset(\Magento\Framework\Data\Form $form)
5959
$storeModel->setData($postData['store']);
6060
}
6161
$fieldset = $form->addFieldset('store_fieldset', ['legend' => __('Store View Information')]);
62-
6362
$storeAction = $this->_coreRegistry->registry('store_action');
6463
if ($storeAction == 'edit' || $storeAction == 'add') {
6564
$fieldset->addField(
@@ -76,7 +75,6 @@ protected function _prepareStoreFieldset(\Magento\Framework\Data\Form $form)
7675
);
7776
$fieldset = $this->prepareGroupIdField($form, $storeModel, $fieldset);
7877
}
79-
8078
$fieldset->addField(
8179
'store_name',
8280
'text',
@@ -99,7 +97,6 @@ protected function _prepareStoreFieldset(\Magento\Framework\Data\Form $form)
9997
'disabled' => $storeModel->isReadOnly()
10098
]
10199
);
102-
103100
$isDisabledStatusField = $storeModel->isReadOnly()
104101
|| ($storeModel->getId() && $storeModel->isDefault() && $storeModel->isActive());
105102
$fieldset->addField(
@@ -124,7 +121,6 @@ protected function _prepareStoreFieldset(\Magento\Framework\Data\Form $form)
124121
]
125122
);
126123
}
127-
128124
$fieldset->addField(
129125
'store_sort_order',
130126
'text',
@@ -136,13 +132,11 @@ protected function _prepareStoreFieldset(\Magento\Framework\Data\Form $form)
136132
'disabled' => $storeModel->isReadOnly()
137133
]
138134
);
139-
140135
$fieldset->addField(
141136
'store_is_default',
142137
'hidden',
143138
['name' => 'store[is_default]', 'no_span' => true, 'value' => $storeModel->getIsDefault()]
144139
);
145-
146140
$fieldset->addField(
147141
'store_store_id',
148142
'hidden',

0 commit comments

Comments
 (0)