Fix issue #440: When changing the id or the name, set the old value in the dialog box first.