-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Service layer updates: * Created Tax Calculation service * Implemented search Tax Rates(search criteria) in TaxRate service * Refactored Tax Helper to use Tax Service * Validated and ensured that after helper fix, all modules with cross-dependencies use Tax Services * Refactored Bundle, Catalog, Checkout, Customer, Downloadable, Review, Logging Modules to use Tax Services * Refactored Internal Tax Module Blocks/Templates to use Tax Services * GitHub requests: * [#579] (#579) -- update GA code from ga.js to analytics.js * [#584] (#584) -- Merge and minify js - Exception * [#585] (#585) -- Add forgotten return statement * [#592] (#592) -- Module name pattern * Tax calculation updates: * Separate and display Weee line item totals from Tax * Fixed bugs: * Fixed an issue when Custom attribute template was not applied to a product during product creation * Fixed an issue when report grid with no results contained unnecessary empty "total" section * Fixed an issue where MCRYPT_RIJNDAEL_128 Cipher was set instead of 256 version * Fixed an issue when inline translate script was always included in the page even if it was not used * Fixed an issue where URL Generation was affected by previously processed URLs * Fixed an issue with cross-site scripting vulnerability via cookie exploitation * Fixed an issue with incorrect success message after system variable was deleted * Fixed an issue with category page not opening if it had bundle product with fixed price assigned to it * Fixed an issue when subtotal price in a shopping cart was not updated if the product qty is changed * Fixed an issue when syntax error appeared while creating new Google Content attribute mapping * Fixed an issue with JS error when adding associated simple product to the grouped one * Fixed an issue with incorrect items label for the cases when there are more than one item in the category * Fixed an issue when configurable product was out of stock in Google Shopping while being in stock in the Magento backend * Fixed an issue when swipe gesture in menu widget was not supported on mobile * Fixed an issue when it was impossible to enter alpha-numeric zip code on the stage of estimating shipping and tax rates * Fixed an issue when it was impossible to edit gift card account * Fixed an issue when custom price was not applied when editing an order * Fixed an issue when items were not returned to stock after unsuccessful order was placed * Fixed an issue when error message appeared "Cannot save the credit memo while creating credit memo * Fixed an issue when Catalog price rule was not shown for the product if price was less than a discount * Indexer implementation: * Implemented a new Stock indexer * Implemented a new EAV indexer * Fixed failed L1 plan on phpunit 4.1.0 * Minor updates for integration test framework * Split action controllers classes into action classes * Added public MTF repository to the packagist.org * Added the following functional tests: * Create Admin User * Create Category * Create Custom Url Rewrite * Create Frontend Product Review * Delete CMS Page * Delete Product * Delete System Variable * Update Admin User Role * Update Product Review * Indexer-less implementation of URL Rewrites functionality in new UrlRedirect module: * Ported Admin UI from old UrlRewrite module * Implemented URL Rewrites unified storage * Covered the following Magento application components with unit tests: * `Magento/Bundle/Block/Sales/Order/Items/Renderer.php` * `Magento/Bundle/Helper/Catalog/Product/Configuration.php` * `Magento/Bundle/Helper/Data.php` * `Magento/Bundle/Model/Option.php` * `Magento/Bundle/Model/Plugin/PriceBackend.php` * `Magento/Bundle/Model/Product/Attribute/Source/Price/View.php` * `Magento/Bundle/Model/Sales/Order/Pdf/Items/AbstractItems.php` * `Magento/Catalog/Model/Product/Attribute/Source/Msrp/Type/Enabled.php` * `Magento/Catalog/Model/Product/Attribute/Source/Msrp/Type/Price.php` * `Magento/Catalog/Model/Product/Visibility.php` * `Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php` * `Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php` * `Magento/Eav/Model/Entity/Attribute/Source/Boolean.php` * `Magento/Eav/Model/Entity/Attribute/Source/Table.php` * `Magento/Tax/Model/TaxClass/Source/Product.php` * Covered Magento library with unit tests : * `lib/internal/Magento/Framework/Simplexml/Config/Cache/AbstractCache.php` * `lib/internal/Magento/Framework/Simplexml/Config.php` * `lib/internal/Magento/Framework/Stdlib/DateTime/DateTime.php` * `lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php` * `lib/internal/Magento/Framework/Stdlib/String.php`
- Loading branch information
1 parent
f19b465
commit c8b7223
Showing
2,175 changed files
with
98,525 additions
and
47,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/AjaxMarkAsRead.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/** | ||
* | ||
* Magento | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Magento to newer | ||
* versions in the future. If you wish to customize Magento for your | ||
* needs please refer to http://www.magentocommerce.com for more information. | ||
* | ||
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
namespace Magento\AdminNotification\Controller\Adminhtml\Notification; | ||
|
||
class AjaxMarkAsRead extends \Magento\AdminNotification\Controller\Adminhtml\Notification | ||
{ | ||
/** | ||
* Mark notification as read (AJAX action) | ||
* | ||
* @return void | ||
*/ | ||
public function execute() | ||
{ | ||
if (!$this->getRequest()->getPost()) { | ||
return; | ||
} | ||
$notificationId = (int)$this->getRequest()->getPost('id'); | ||
$responseData = array(); | ||
try { | ||
$this->_objectManager->create( | ||
'Magento\AdminNotification\Model\NotificationService' | ||
)->markAsRead( | ||
$notificationId | ||
); | ||
$responseData['success'] = true; | ||
} catch (\Exception $e) { | ||
$responseData['success'] = false; | ||
} | ||
$this->getResponse()->representJson( | ||
$this->_objectManager->create('Magento\Core\Helper\Data')->jsonEncode($responseData) | ||
); | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/Index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* | ||
* Magento | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Magento to newer | ||
* versions in the future. If you wish to customize Magento for your | ||
* needs please refer to http://www.magentocommerce.com for more information. | ||
* | ||
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
namespace Magento\AdminNotification\Controller\Adminhtml\Notification; | ||
|
||
class Index extends \Magento\AdminNotification\Controller\Adminhtml\Notification | ||
{ | ||
/** | ||
* @return void | ||
*/ | ||
public function execute() | ||
{ | ||
$this->_title->add(__('Notifications')); | ||
|
||
$this->_view->loadLayout(); | ||
$this->_setActiveMenu( | ||
'Magento_AdminNotification::system_adminnotification' | ||
)->_addBreadcrumb( | ||
__('Messages Inbox'), | ||
__('Messages Inbox') | ||
); | ||
$this->_view->renderLayout(); | ||
} | ||
} |
Oops, something went wrong.