Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test Framework: * Created `CodingStandard_ToolInterface` - new interface for coding standard static tests. Refactored `CodeSniffer` class as an implementation of the interface * Fixed DB isolation in integration tests after themes refactoring * Minor test fixes * Changes in product creation process * Added ability to change product type "on the fly" depending on selected options * Added ability of new category creation on "General" tab * Moved "Associated Products" tab contents to collapsible block on "General" tab for configurable products * Visual enhancement made for base image and Virtual/Downloadable checkbox * Refactored implementation of associated products in backend (admin) to make them configurable through grid layout, rather than hard-coded. * Enhanced product variation matrix for configurable products * Changed "Apply To" feature in product attributes management due to changes in product creation process * Fixed XSS vulnerabilities in `Mage_Wishlist_IndexController`, `Mage_Adminhtml_Block_Review_Edit_Form`, `Mage_Catalog_Product_CompareController` * Bug fixes * Fixed error on `Catalog -> Google Content -> Manage Items page` * Fixed bug with "Update Attributes" mass action for products on backend caused by setting incorrect inheritance of `Mage_Adminhtml_Helper_Catalog_Product_Edit_Action_Attribute` * Added additional validation of "quantity" field to fix issues with inventory during product saving * Added additional validation into `EAV` models to forbid creation of two products with the same unique multi-select attribute
- Loading branch information
1 parent
71f6961
commit 975952e
Showing
155 changed files
with
4,999 additions
and
1,421 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
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
85 changes: 85 additions & 0 deletions
85
app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/NewCategory.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,85 @@ | ||
<?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 license@magentocommerce.com 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. | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
/** | ||
* New category creation form | ||
* | ||
* @category Mage | ||
* @package Mage_Adminhtml | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
class Mage_Adminhtml_Block_Catalog_Product_Edit_NewCategory extends Mage_Backend_Block_Widget_Form | ||
{ | ||
/** | ||
* Form preparation | ||
*/ | ||
protected function _prepareForm() | ||
{ | ||
$form = new Varien_Data_Form(); | ||
|
||
$form->addField('new_category_messages', 'note', array()); | ||
|
||
$fieldset = $form->addFieldset('new_category_form', array()); | ||
|
||
$fieldset->addField('new_category_name', 'text', array( | ||
'label' => Mage::helper('Mage_Catalog_Helper_Data')->__('Category Name'), | ||
'title' => Mage::helper('Mage_Catalog_Helper_Data')->__('Category Name'), | ||
'required' => true, | ||
)); | ||
|
||
$fieldset->addField('new_category_parent', 'text', array( | ||
'label' => Mage::helper('Mage_Catalog_Helper_Data')->__('Parent Category'), | ||
'title' => Mage::helper('Mage_Catalog_Helper_Data')->__('Parent Category'), | ||
'autocomplete' => 'off', | ||
'required' => true, | ||
'class' => 'validate-parent-category', | ||
)); | ||
|
||
$fieldset->addField('new_category_parent_id', 'hidden', array()); | ||
|
||
$this->setForm($form); | ||
} | ||
|
||
/** | ||
* Category save action URL | ||
* | ||
* @return string | ||
*/ | ||
public function getSaveCategoryUrl() | ||
{ | ||
return $this->getUrl('*/catalog_category/save'); | ||
} | ||
|
||
/** | ||
* Category suggestion action URL | ||
* | ||
* @return string | ||
*/ | ||
public function getSuggestCategoryUrl() | ||
{ | ||
return $this->getUrl('*/catalog_category/suggestCategories'); | ||
} | ||
} |
Oops, something went wrong.