← All changes
|
app/modules/import-export-customization/utils.php
+1
-1
4.2.4
→
4.0.0-dev2
View file →
| @@ -166,9 +166,9 @@ | ||
| 166 | 166 | $suffix_str = '_' . $suffix; |
| 167 | 167 | $max_base_length = $max_length - strlen( $suffix_str ); |
| 168 | 168 | $base_label = mb_substr( $label, 0, $max_base_length ); |
| 169 | 169 | $new_label = $base_label . $suffix_str; |
| 170 | - ++$suffix; | |
| 170 | + $suffix++; | |
| 171 | 171 | } while ( in_array( strtolower( $new_label ), $existing_labels, true ) && $suffix < $max_suffix_attempts ); |
| 172 | 172 | |
| 173 | 173 | return $new_label; |
| 174 | 174 | } |