Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.2-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - magento#14504: Check if store id is not null instead of empty (by @quisse)
 - magento#14498: fix translation issue with rating stars (by @Karlasa)
  • Loading branch information
magento-engcom-team authored Apr 4, 2018
2 parents c35ee13 + 975a94a commit fbd4188
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Cms/Model/PageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function __construct(
*/
public function save(\Magento\Cms\Api\Data\PageInterface $page)
{
if (empty($page->getStoreId())) {
if ($page->getStoreId() === null) {
$storeId = $this->storeManager->getStore()->getId();
$page->setStoreId($storeId);
}
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Review/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,5 @@ Summary,Summary
Active,Active
Inactive,Inactive
"Please select one of each of the ratings above.","Please select one of each of the ratings above."
star,star
stars,stars
4 changes: 2 additions & 2 deletions app/code/Magento/Review/view/frontend/templates/form.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<label
class="rating-<?= $block->escapeHtmlAttr($iterator) ?>"
for="<?= $block->escapeHtmlAttr(str_replace(' ', '_', $_rating->getRatingCode())) ?>_<?= $block->escapeHtmlAttr($_option->getValue()) ?>"
title="<?= $block->escapeHtmlAttr(__('%1 %2', $iterator, $iterator > 1 ? 'stars' : 'star')) ?>"
title="<?= $block->escapeHtmlAttr(__('%1 %2', $iterator, $iterator > 1 ? __('stars') : __('star'))) ?>"
id="<?= $block->escapeHtmlAttr(str_replace(' ', '_', $_rating->getRatingCode())) ?>_<?= $block->escapeHtmlAttr($_option->getValue()) ?>_label">
<span><?= $block->escapeHtml(__('%1 %2', $iterator, $iterator > 1 ? 'stars' : 'star')) ?></span>
<span><?= $block->escapeHtml(__('%1 %2', $iterator, $iterator > 1 ? __('stars') : __('star'))) ?></span>
</label>
<?php $iterator++; ?>
<?php endforeach; ?>
Expand Down

0 comments on commit fbd4188

Please sign in to comment.