Fix setting account's full name via ssh

While the fetched Account object had its full name updated, the
object was not flagged as updated, so the change was not pushed back
to the database. We now flag the account as updated and hence the new
full name gets written to the database.

Change-Id: I79ca6df458170af97ab7afde3125a8d7cec5ca17
This commit is contained in:
Christian Aistleitner
2013-04-30 19:41:51 +02:00
committed by David Pursehouse
parent 92817e8784
commit 6fe6ff6122

View File

@@ -147,6 +147,7 @@ final class SetAccountCommand extends BaseCommand {
if (fullName != null) {
if (realm.allowsEdit(FieldName.FULL_NAME)) {
account.setFullName(fullName);
accountUpdated = true;
} else {
throw new UnloggedFailure(1, "The realm doesn't allow editing names");
}