Skip to content

Commit

Permalink
Replaced ExtJS with Maho Tree (MahoCommerce#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbeaty authored Jan 4, 2025
1 parent a8cf65e commit 8d8144f
Show file tree
Hide file tree
Showing 117 changed files with 4,505 additions and 4,904 deletions.
1 change: 0 additions & 1 deletion .github/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ paths-ignore:
- 'js/prototype/prototype.js'
- 'js/mage/adminhtml/wysiwyg/tiny_mce/setup.js'
- 'js/validation.js'
- 'js/extjs/ext-tree.js'
- '**/*.test.js'
30 changes: 0 additions & 30 deletions .phpstan.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4350,12 +4350,6 @@ parameters:
count: 4
path: app/design/adminhtml/default/default/template/api/roles.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
count: 9
path: app/design/adminhtml/default/default/template/api/rolesedit.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
Expand Down Expand Up @@ -4404,12 +4398,6 @@ parameters:
count: 4
path: app/design/adminhtml/default/default/template/api/users.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
count: 11
path: app/design/adminhtml/default/default/template/api2/attribute/resource.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
Expand Down Expand Up @@ -4488,18 +4476,6 @@ parameters:
count: 5
path: app/design/adminhtml/default/default/template/bundle/product/edit/bundle/option/search.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
count: 12
path: app/design/adminhtml/default/default/template/catalog/category/checkboxes/tree.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
count: 19
path: app/design/adminhtml/default/default/template/catalog/category/widget/tree.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
Expand Down Expand Up @@ -4962,12 +4938,6 @@ parameters:
count: 1
path: app/design/adminhtml/default/default/template/resetforgottenpassword.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
count: 5
path: app/design/adminhtml/default/default/template/review/add.phtml

-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
Expand Down
10 changes: 1 addition & 9 deletions app/code/core/Mage/Admin/Model/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package Mage_Admin
* @copyright Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)
* @copyright Copyright (c) 2018-2024 The OpenMage Contributors (https://openmage.org)
* @copyright Copyright (c) 2024 Maho (https://mahocommerce.com)
* @copyright Copyright (c) 2024-2025 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand All @@ -23,17 +23,9 @@
* @method $this setActiveTabId(int $value)
* @method $this unsActiveTabId()
* @method $this setAttributeData(array|false $data)
* @method string getDeletedPath()
* @method $this setDeletedPath(string $value)
* @method bool getIndirectLogin()
* @method $this setIndirectLogin(bool $value)
* @method $this setIsFirstVisit(bool $value)
* @method bool getIsTreeWasExpanded()
* @method $this setIsTreeWasExpanded(bool $value)
* @method int getLastEditedCategory()
* @method $this setLastEditedCategory(int $value)
* @method string getLastViewedStore()
* @method $this setLastViewedStore(string $value)
* @method bool getUserPasswordChanged()
* @method $this setUserPasswordChanged(bool $value)
* @method bool hasSyncProcessStopWatch()
Expand Down
5 changes: 4 additions & 1 deletion app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @package Mage_Adminhtml
* @copyright Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)
* @copyright Copyright (c) 2022-2024 The OpenMage Contributors (https://openmage.org)
* @copyright Copyright (c) 2024-2025 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down Expand Up @@ -99,7 +100,9 @@ protected function _getNodeJson($node, $level = 0)
}
}
}
if (!empty($item['children'])) {
if (empty($item['children'])) {
unset($item['children']);
} else {
usort($item['children'], [$this, '_sortTree']);
}
}
Expand Down
Loading

0 comments on commit 8d8144f

Please sign in to comment.