Skip to content

Commit db2809a

Browse files
committed
Merge branch 'main' of github.com:venveo/craft-bulkedit into develop
2 parents 7a9d6b9 + 8682aec commit db2809a

File tree

12 files changed

+82
-16
lines changed

12 files changed

+82
-16
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Screenshots**
14+
If applicable, add screenshots to help explain your problem.
15+
16+
**Environmental Info**
17+
- Craft CMS Version:
18+
- Multi-site Mode (Yes/No):
19+
- Plugin Version:
20+
- PHP Version:
21+
- Database Driver (MySQL/Postgres):
22+
23+
**Additional context**
24+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Bulk Edit Changelog
22

3+
## 4.0.0 - 2022-10-24
4+
5+
### Added
6+
- "Select All" support - this works well with filtres, conditions, etc.
7+
8+
### Changed
9+
- Bulk Edit now requires Craft 4
10+
- Plugin no longer requires db tables - all data is now stored in the queue job.
11+
- Field strategies are now represented as classes implementing FieldStrategyInterface
12+
- Refactored field rendering for future support of native fields
13+
14+
### Fixed
15+
- Fix bulk editing products (Thanks @nilsenpaul)
16+
- Added missing string translations (Thanks @nilsenpaul)
17+
318
## 4.0.0-RC1 - 2022-06-22
419

520
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bulk Edit plugin for Craft CMS 3.2+
1+
# Bulk Edit plugin for Craft CMS 4
22

33
## Overview
44
The Bulk Edit plugin adds an action to supported element index pages that allows you to edit fields on a large number of
@@ -35,7 +35,7 @@ potentially erroneous states (for example, removing all content on a required fi
3535

3636
## Requirements
3737

38-
This plugin requires Craft CMS 3.2.0 or later.
38+
This plugin requires Craft CMS 4.0.0 or later. For legacy Craft 3 support, use version 2.x
3939

4040
## Installation
4141

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "venveo/craft-bulkedit",
33
"description": "Bulk edit Craft CMS element fields",
44
"type": "craft-plugin",
5-
"version": "4.0.0-RC1",
5+
"version": "4.0.0",
66
"keywords": [
77
"craft",
88
"cms",
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"craftcms/cms": "^4.0.0-beta.1",
25+
"craftcms/cms": "^4.0.0",
2626
"php": "^8.0.2"
2727
},
2828
"autoload": {

src/elements/processors/ProductProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace venveo\bulkedit\elements\processors;
44

5+
use Craft;
56
use craft\base\Element;
67
use craft\commerce\records\Product;
78
use craft\commerce\records\ProductType;

src/fields/strategies/Add.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
namespace venveo\bulkedit\fields\strategies;
44

5+
use Craft;
56
use venveo\bulkedit\base\FieldStrategyInterface;
67

78
class Add implements FieldStrategyInterface
89
{
910
public static function displayName(): string
1011
{
11-
return 'Add';
12+
return Craft::t('venveo-bulk-edit', 'Add');
1213
}
13-
}
14+
}

src/fields/strategies/Divide.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
namespace venveo\bulkedit\fields\strategies;
44

5+
use Craft;
56
use venveo\bulkedit\base\FieldStrategyInterface;
67

78
class Divide implements FieldStrategyInterface
89
{
910
public static function displayName(): string
1011
{
11-
return 'Divide';
12+
return Craft::t('venveo-bulk-edit', 'Divide');
1213
}
13-
}
14+
}

src/fields/strategies/Merge.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
namespace venveo\bulkedit\fields\strategies;
44

5+
use Craft;
56
use venveo\bulkedit\base\FieldStrategyInterface;
67

78
class Merge implements FieldStrategyInterface
89
{
910
public static function displayName(): string
1011
{
11-
return 'Merge';
12+
return Craft::t('venveo-bulk-edit', 'Merge');
1213
}
13-
}
14+
}

src/fields/strategies/Multiply.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
namespace venveo\bulkedit\fields\strategies;
44

5+
use Craft;
56
use venveo\bulkedit\base\FieldStrategyInterface;
67

78
class Multiply implements FieldStrategyInterface
89
{
910
public static function displayName(): string
1011
{
11-
return 'Multiply';
12+
return Craft::t('venveo-bulk-edit', 'Multiply');
1213
}
13-
}
14+
}

0 commit comments

Comments
 (0)