Archived
1
0
Fork 0

app/forms/UserSettings.php: Show "Save" or "Create" based on if there is a entity id or not.

This commit is contained in:
Henrik Hautakoski 2022-07-24 17:16:37 +02:00
parent c6704f5f4a
commit 652b814e13

View file

@ -148,7 +148,7 @@ class UserSettings extends FormBase
$this->_passwords();
// Submit
$submit = new Submit('Save', array('class' => 'button button-default'));
$submit = new Submit($entity && $entity->getId() ? 'Save' : 'Create', array('class' => 'button button-default'));
$this->add($submit);
}