Skip to content

Commit 068bcde

Browse files
committed
Display correctly "Add" button label for the block class \Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray
1 parent e7f5340 commit 068bcde

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/code/Magento/Config/Block/System/Config/Form/Field/FieldArray/AbstractFieldArray.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,12 @@ public function getColumns()
279279
{
280280
return $this->_columns;
281281
}
282+
283+
/**
284+
* @return string
285+
*/
286+
public function getAddButtonLabel()
287+
{
288+
return $this->_addButtonLabel;
289+
}
282290
}

app/code/Magento/Config/view/adminhtml/templates/system/config/form/field/array.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $_colspan = $block->isAddAfter() ? 2 : 1;
2828
<tr>
2929
<td colspan="<?php echo count($block->getColumns())+$_colspan; ?>" class="col-actions-add">
3030
<button id="addToEndBtn<?php /* @escapeNotVerified */ echo $_htmlId; ?>" class="action-add" title="<?php /* @escapeNotVerified */ echo __('Add'); ?>" type="button">
31-
<span><?php /* @escapeNotVerified */ echo $block->getAddButtonLabel(); ?><?php /* @escapeNotVerified */ echo __('Add'); ?></span>
31+
<span><?php /* @escapeNotVerified */ echo $block->getAddButtonLabel(); ?></span>
3232
</button>
3333
</td>
3434
</tr>

0 commit comments

Comments
 (0)