From a7a0e18960a3e90633e4347c021bd93f7f150017 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 17 Feb 2013 13:30:40 +0000 Subject: [PATCH] no "Reset changes" for new accounts --- lam/lib/modules.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index be3fadb4..811d7747 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1157,9 +1157,11 @@ class accountContainer { $leftButtonGroup->addElement($saveButton); $leftButtonGroup->addElement(new htmlSpacer('1px', null)); // reset button - $resetButton = new htmlButton('accountContainerReset', _('Reset changes')); - $resetButton->setIconClass('undoButton'); - $leftButtonGroup->addElement($resetButton); + if (!$this->isNewAccount) { + $resetButton = new htmlButton('accountContainerReset', _('Reset changes')); + $resetButton->setIconClass('undoButton'); + $leftButtonGroup->addElement($resetButton); + } // set password button if ($this->showSetPasswordButton()) { $leftButtonGroup->addElement(new htmlSpacer('15px', null));