Skip to content
Snippets Groups Projects
Commit 7cc4da4f authored by Antoine Detailleur's avatar Antoine Detailleur Committed by Sandro Weber
Browse files

Merged in NRRPLT-8434 (pull request #326)

Name validation after changing the name

* [NRRPLT-8434] pass original oldName to backend, update name only in callback


Approved-by: Ugo Albanese
Approved-by: Sandro Weber
parent 3bb49304
No related branches found
No related tags found
No related merge requests found
......@@ -1175,7 +1175,7 @@ def {0}(t):
);
if (actualTfName !== transferFunction.name) {
transferFunction.id = transferFunction.oldName = transferFunction.name = actualTfName;
transferFunction.id = transferFunction.name = actualTfName;
}
// Make sure we don't have duplicated names
......@@ -1249,7 +1249,7 @@ def {0}(t):
} else {
backendInterfaceService
.editTransferFunction(
transferFunction.name,
transferFunction.oldName,
transferFunction.rawCode
)
.then(successCallback)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment