Skip to content

Commit

Permalink
6.21.2 (FINAL RELEASE)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2epro committed Apr 13, 2022
1 parent 9fd51ee commit 74bfba5
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 80 deletions.
2 changes: 1 addition & 1 deletion app/code/community/Ess/M2ePro/Block/Adminhtml/Support.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct()
);

if ($this->_referrer === null) {
$url = Mage::helper('M2ePro/Module_Support')->getDocumentationUrl();
$url = Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(null, null, 'spaces/m1/overview');
} else if ($this->_referrer == Ess_M2ePro_Helper_View_Ebay::NICK) {
$url = Mage::helper('M2ePro/Module_Support')->getDocumentationUrl(Ess_M2ePro_Helper_View_Ebay::NICK);
} else if ($this->_referrer == Ess_M2ePro_Helper_View_Amazon::NICK) {
Expand Down
7 changes: 6 additions & 1 deletion app/code/community/Ess/M2ePro/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
* 6.21.1 (05/04/2022)
* 6.21.2 (13/04/2022)

Common: [Improved] Some UI text updates [#3486]
eBay: [Fixed] Fatal error occurred when moving products from Unmanaged Listing to the M2E Pro Listing [#3436]

* 6.21.1 (05/04/2022)

Common [Fixed] Unable to set a decimal value in the "VAT Rate" field in the Selling Policy [#3100]
eBay [Fixed] Incorrect mapping of floating-point variations when creating a Magento Order [#3108]
Expand Down
27 changes: 4 additions & 23 deletions app/code/community/Ess/M2ePro/Helper/Module/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ public function getFatalErrorDetailedInfo($error, $traceInfo)
{
$info = $this->getFatalInfo($error, 'Fatal Error');
$info .= $traceInfo;
$info .= $this->getCurrentUserActionInfo();
$info .= $this->getAdditionalActionInfo();
$info .= Mage::helper('M2ePro/Module_Support')->getSummaryInfo();
$info .= Mage::helper('M2ePro/Module_Log')->platformInfo();
$info .= Mage::helper('M2ePro/Module_Log')->moduleInfo();

return $info;
}
Expand All @@ -168,9 +168,9 @@ public function getExceptionDetailedInfo(Exception $exception)
{
$info = $this->getExceptionInfo($exception, get_class($exception));
$info .= $this->getExceptionStackTraceInfo($exception);
$info .= $this->getCurrentUserActionInfo();
$info .= $this->getAdditionalActionInfo();
$info .= Mage::helper('M2ePro/Module_Support')->getSummaryInfo();
$info .= Mage::helper('M2ePro/Module_Log')->platformInfo();
$info .= Mage::helper('M2ePro/Module_Log')->moduleInfo();

return $info;
}
Expand Down Expand Up @@ -318,25 +318,6 @@ public function getFatalStackTraceInfo($stackTrace)

// ---------------------------------------

protected function getCurrentUserActionInfo()
{
// @codingStandardsIgnoreStart
$server = print_r(Mage::app()->getRequest()->getServer(), true);
$get = print_r(Mage::app()->getRequest()->getQuery(), true);
$post = print_r(Mage::app()->getRequest()->getPost(), true);
// @codingStandardsIgnoreEnd

$actionInfo = <<<ACTION
-------------------------------- ACTION INFO -------------------------------------
SERVER: {$server}
GET: {$get}
POST: {$post}
ACTION;

return $actionInfo;
}

protected function getAdditionalActionInfo()
{
$currentStoreId = Mage::app()->getStore()->getId();
Expand Down
32 changes: 31 additions & 1 deletion app/code/community/Ess/M2ePro/Helper/Module/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,35 @@ public function setViewMode($sessionName, $mode)
return Mage::helper('M2ePro/Data_Session')->setValue($sessionName, $mode);
}

public function platformInfo()
{
$platformInfo = array(
'edition' => Mage::helper('M2ePro/Magento')->getEditionName(),
'version' => Mage::helper('M2ePro/Magento')->getVersion()
);

return <<<DATA
-------------------------------- PLATFORM INFO -----------------------------------
Edition: {$platformInfo['edition']}
Version: {$platformInfo['version']}
DATA;
}

public function moduleInfo()
{
$moduleInfo = array(
'name' => Mage::helper('M2ePro/Module')->getName(),
'version' => Mage::helper('M2ePro/Module')->getPublicVersion()
);

return <<<DATA
-------------------------------- MODULE INFO -------------------------------------
Name: {$moduleInfo['name']}
Version: {$moduleInfo['version']}
DATA;
}

//########################################
}
}
23 changes: 2 additions & 21 deletions app/code/community/Ess/M2ePro/Helper/Module/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public function process($logData, $class = 'undefined', $sendToServer = true)
try {
$info = $this->getLogMessage($logData, $class);
$info .= $this->getStackTraceInfo();
$info .= $this->getCurrentUserActionInfo();

$this->systemLog($class, null, $info);

Expand All @@ -26,7 +25,8 @@ public function process($logData, $class = 'undefined', $sendToServer = true)
return;
}

$info .= Mage::helper('M2ePro/Module_Support')->getSummaryInfo();
$info .= Mage::helper('M2ePro/Module_Log')->platformInfo();
$info .= Mage::helper('M2ePro/Module_Log')->moduleInfo();

$this->send($info, $class);

Expand Down Expand Up @@ -79,25 +79,6 @@ protected function getStackTraceInfo()
return $stackTraceInfo;
}

protected function getCurrentUserActionInfo()
{
// @codingStandardsIgnoreStart
$server = print_r(Mage::app()->getRequest()->getServer(), true);
$get = print_r(Mage::app()->getRequest()->getQuery(), true);
$post = print_r(Mage::app()->getRequest()->getPost(), true);
// @codingStandardsIgnoreEnd

$actionInfo = <<<ACTION
-------------------------------- ACTION INFO -------------------------------------
SERVER: {$server}
GET: {$get}
POST: {$post}
ACTION;

return $actionInfo;
}

//########################################

protected function send($logData, $type)
Expand Down
15 changes: 9 additions & 6 deletions app/code/community/Ess/M2ePro/Helper/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function getEndpoint()
}
}

return $this->getCurrentBaseUrl().'index.php';
return $this->getCurrentBaseUrl() . '/index.php';
}

public function switchEndpoint()
Expand Down Expand Up @@ -62,18 +62,21 @@ public function getApplicationKey()

//########################################

public function getCurrentBaseUrl()
{
return $this->getBaseUrlByIndex($this->getCurrentIndex());
}

public function getCurrentHostName()
{
return $this->getHostNameByIndex($this->getCurrentIndex());
}

// ---------------------------------------

protected function getCurrentBaseUrl()
{
$dbBaseUrl = $this->getBaseUrlByIndex($this->getCurrentIndex());
$dbBaseUrl = str_replace('index.php', '', $dbBaseUrl);

return rtrim($dbBaseUrl, '/');
}

protected function getDefaultIndex()
{
$index = (int)Mage::helper('M2ePro/Module')->getConfig()->getGroupValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,17 @@ class Ess_M2ePro_Model_Ebay_Template_StoreCategory_Builder extends Ess_M2ePro_Mo

protected function prepareData()
{
$data = array();

$keys = array(
$allowedKeys = array_flip(array(
'account_id',
'category_mode',
'category_id',
'category_attribute',
'category_path'
);
));

foreach ($keys as $key) {
isset($this->_rawData[$key]) && $data[$key] = $this->_rawData[$key];
}

return $data;
return array_filter(
array_intersect_key($this->_rawData, $allowedKeys)
);
}

public function getDefaultData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected function updateServersBaseUrls(array $data)
$connectorObj = $dispatcherObject->getConnector(
'server', 'check', 'state',
array(
'base_url' => $change['baseurl'].'index.php',
'base_url' => $this->cleaningBaseUrl($change['baseurl']) . '/index.php',
'hostname' => $change['hostname'],
)
);
Expand All @@ -123,6 +123,13 @@ protected function updateServersBaseUrls(array $data)
}
}

protected function cleaningBaseUrl($baseUrl)
{
$baseUrl = str_replace('index.php', '', $baseUrl);

return rtrim($baseUrl, '/');
}

protected function updateDefaultServerBaseUrlIndex(array $data)
{
if (!isset($data['default_server_baseurl_index']) || (int)$data['default_server_baseurl_index'] <= 0) {
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Ess/M2ePro/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "m2epro/magento1-extension",
"description": "M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.",
"type": "magento-module",
"version": "6.21.1",
"version": "6.21.2",
"license": "proprietary",
"keywords": ["ebay", "amazon", "walmart", "magento"],
"homepage": "https://www.m2epro.com/",
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Ess/M2ePro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Ess_M2ePro>
<version>6.21.1</version>
<version>6.21.2</version>
</Ess_M2ePro>
</modules>
<default>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

/*
* @author M2E Pro Developers Team
* @copyright M2E LTD
* @license Commercial use is forbidden
*/

class Ess_M2ePro_Sql_Upgrade_v6_21_1__v6_21_2_Config extends Ess_M2ePro_Model_Upgrade_Feature_AbstractConfig
{
//########################################

public function getFeaturesList()
{
return array();
}

//########################################
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,6 @@ $hideParam === null && $hideParam = true;
<option value="1" <?php if ($hideParam == 1): ?>selected="selected"<?php endif; ?>><?php echo Mage::helper('M2ePro')->__('Yes'); ?></option>
</select>
</td>
<td>
<img src="<?php echo $this->getSkinUrl('M2ePro/images/tool-tip-icon.png'); ?>"
class="tool-tip-image"
style="display: block; margin: 2px 0 0 6px;">
<span class="tool-tip-message tip-left" style="left: 650px; display: none; width: 200px;">
<img src="<?php echo $this->getSkinUrl('M2ePro/images/help.png'); ?>">
<span>
<?php echo Mage::helper('M2ePro')->__(
'<b>Note:</b> the Products from current Listing are not shown also.'
); ?>
</span>
</span>
</td>
</tr>
</table>
</div>
Expand All @@ -68,4 +55,4 @@ $hideParam === null && $hideParam = true;
</div>
</div>

</div>
</div>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "m2epro/magento1-extension",
"description": "M2E Pro is a Magento trusted (TM), award-winning extension, which allows merchants of all sizes to fully integrate Magento based system(s) into eBay/Amazon/Walmart platforms.",
"type": "magento-module",
"version": "6.21.1",
"version": "6.21.2",
"license": "proprietary",
"keywords": ["ebay", "amazon", "walmart", "magento"],
"homepage": "https://www.m2epro.com/",
Expand Down

0 comments on commit 74bfba5

Please sign in to comment.