← All changes
|
modules/variables/import-export-customization/runners/import.php
+2
-0
4.2.0
→
4.3.0-beta3
View file →
| @@ -128,8 +128,9 @@ | ||
| 128 | 128 | |
| 129 | 129 | if ( $type_matches ) { |
| 130 | 130 | $existing_var = $existing->get( $existing_entry['id'] ); |
| 131 | 131 | $existing_var->set_value( $variable->value() ); |
| 132 | + $existing_var->set_sync_to_v3( $variable->sync_to_v3() ); | |
| 132 | 133 | |
| 133 | 134 | $result['replaced'][] = [ |
| 134 | 135 | 'import_entry' => $import_entry, |
| 135 | 136 | 'result_entry' => $this->format_variable_as_entry( $existing_var ), |
| @@ -153,8 +154,9 @@ | ||
| 153 | 154 | 'type' => $variable->type(), |
| 154 | 155 | 'label' => $new_label, |
| 155 | 156 | 'value' => $variable->value(), |
| 156 | 157 | 'order' => $existing->get_next_order(), |
| 158 | + 'sync_to_v3' => $variable->sync_to_v3(), | |
| 157 | 159 | ] ); |
| 158 | 160 | |
| 159 | 161 | $existing->add_variable( $new_variable ); |
| 160 | 162 | |