Skip to content
Snippets Groups Projects
Commit 8c4cd7b4 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #21204 TIME 0:05 update splice function order

parent 223d613d
No related branches found
No related tags found
No related merge requests found
...@@ -963,8 +963,6 @@ export class IndexingFormComponent implements OnInit { ...@@ -963,8 +963,6 @@ export class IndexingFormComponent implements OnInit {
field.values = this.availableCustomFields[indexFound].values; field.values = this.availableCustomFields[indexFound].values;
field.type = this.availableCustomFields[indexFound].type; field.type = this.availableCustomFields[indexFound].type;
field.SQLMode = this.availableCustomFields[indexFound].SQLMode; field.SQLMode = this.availableCustomFields[indexFound].SQLMode;
this.availableCustomFields.splice(indexFound, 1);
fieldExist = true;
if (['select', 'radio', 'checkbox'].indexOf(field.type) > - 1) { if (['select', 'radio', 'checkbox'].indexOf(field.type) > - 1) {
if (!this.functions.empty(field.default_value)) { if (!this.functions.empty(field.default_value)) {
if (['select', 'radio'].indexOf(field.type) > - 1) { if (['select', 'radio'].indexOf(field.type) > - 1) {
...@@ -976,6 +974,7 @@ export class IndexingFormComponent implements OnInit { ...@@ -976,6 +974,7 @@ export class IndexingFormComponent implements OnInit {
} else { } else {
field.default_value = !this.functions.empty(field.default_value) ? field.default_value : this.availableCustomFields[indexFound].default_value; field.default_value = !this.functions.empty(field.default_value) ? field.default_value : this.availableCustomFields[indexFound].default_value;
} }
this.availableCustomFields.splice(indexFound, 1);
fieldExist = true; fieldExist = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment