Skip to content

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Jul 12, 2023
2 parents b836666 + 8aae6e2 commit 54f8074
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Catalog/Model/Product/Indexer/Flat.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function matchEvent(Mage_Index_Model_Event $event)
} else {
/** @var Mage_Core_Model_Store $store */
$store = $event->getDataObject();
if ($store && $store->isObjectNew()) {
if ($store && ($store->isObjectNew() || $store->getOrigData('is_active') != $store->getIsActive() && $store->getIsActive())) {
$result = true;
} else {
$result = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,9 @@ protected function _arrayNextKey(array $array, $key)
public function reindexAll()
{
foreach (Mage::app()->getStores() as $storeId => $store) {
if (!$store->getIsActive()) {
continue;
}
$this->prepareFlatTable($storeId);
$this->beginTransaction();
try {
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Core/Block/Messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public function getGroupedHtml()
if ($html) {
$html .= '</' . $this->_messagesFirstLevelTagName . '>';
}
$this->_messages = $this->getMessageCollection()->clear();
return $html;
}

Expand Down
4 changes: 4 additions & 0 deletions app/code/core/Mage/Customer/Block/Form/Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ public function getFormData()
if (isset($data['region_id'])) {
$data['region_id'] = (int)$data['region_id'];
}
if ($data->getDob()) {
$dob = $data->getYear() . '-' . $data->getMonth() . '-' . $data->getDay();
$data->setDob($dob);
}
$this->setData('form_data', $data);
}
return $data;
Expand Down

0 comments on commit 54f8074

Please sign in to comment.