← All changes
|
modules/variables/services/batch-operations/batch-processor.php
+0
-2
4.2.0-dev2
→
3.35.8
View file →
| @@ -41,9 +41,8 @@ | ||
| 41 | 41 | $data['order'] = $collection->get_next_order(); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $variable = Variable::create_new( $data ); |
| 45 | - $variable->validate(); | |
| 46 | 45 | |
| 47 | 46 | $collection->add_variable( $variable ); |
| 48 | 47 | |
| 49 | 48 | // TODO: do we need to return all this payload maybe return what the clients want |
| @@ -94,9 +93,8 @@ | ||
| 94 | 93 | $collection->assert_limit_not_reached(); |
| 95 | 94 | |
| 96 | 95 | if ( isset( $operation['label'] ) ) { |
| 97 | 96 | $collection->assert_label_is_unique( $operation['label'], $id ); |
| 98 | - $variable->validate(); | |
| 99 | 97 | } |
| 100 | 98 | |
| 101 | 99 | $variable->apply_changes( $operation ); |
| 102 | 100 | |