diff --git a/client/src/views/modals/edit.js b/client/src/views/modals/edit.js index 3ca316575b..3f854c8bea 100644 --- a/client/src/views/modals/edit.js +++ b/client/src/views/modals/edit.js @@ -426,7 +426,11 @@ class EditModalView extends ModalView { if (wasNew) { const url = `#${this.scope}/view/${model.id}`; - const name = model.attributes[this.nameAttribute] || this.model.id; + let name = model.attributes[this.nameAttribute]; + + if (name === undefined) { + name = this.translate(this.scope, 'scopeNames'); + } const msg = this.translate('Created') + '\n' + `[${name}](${url})`;