use cache invalidation on inital read before edit too; add missing translations

This commit is contained in:
Klaus Leithoff 2013-04-25 14:34:51 +00:00
parent 682e33c68a
commit 1405474161
3 changed files with 8 additions and 4 deletions

View File

@ -1371,9 +1371,11 @@
{
if($_account_id)
{
$account =& CreateObject('phpgwapi.accounts',(int)$_account_id,'u');
$userData = $account->read_repository();
$userGroups = $account->membership($_account_id);
// invalidate account, before reading it, to cope with changes to DB or LDAP outside EGw
accounts::cache_invalidate((int)$_account_id);
$userData = $GLOBALS['egw']->accounts->read((int)$_account_id,'u');
$userGroups = $GLOBALS['egw']->accounts->membership($_account_id);
$acl =& CreateObject('phpgwapi.acl',$_account_id);
$acl->read_repository();
$userData['anonymous'] = $acl->check('anonymous',1,'phpgwapi');
@ -1394,7 +1396,7 @@
$userData['changepassword'] = (bool)$GLOBALS['egw_info']['server']['change_pwd_every_x_days'];
$userData['mustchangepassword'] = false;
}
$allGroups = $account->get_list('groups');
$allGroups = $GLOBALS['egw']->accounts->get_list('groups');
}
$page_params['menuaction'] = 'admin.uiaccounts.'.($_account_id?'edit':'add').'_user';
if($_account_id)

View File

@ -638,6 +638,7 @@ wrong account type: %1 is no %2 !!! admin de Falscher Konten Typ: %1 ist kein(e)
wrong admin-account or -password !!! admin de Falscher Admin-Account oder Passwort !!!
xml-rpc admin de XML-RPC
yes, but no scayt admin de Ja, aber keine automatische Rechtschreibüberprüfung
yes, use browser based spell checking engine admin de Ja, benutze nur die im Browser eingebaute Rechtschreibhilfe
yes, use webspellchecker admin de Ja, benutze nur den WebSpellChecker (online)
you can only change the hash, if you set a random password or currently use plaintext passwords! admin de Sie können die Passwort-Verschlüsselung nur ändern, wenn sie ein zufälliges Passwort setzen oder bisher Passworte im Klartext gespeichert haben!
you have entered an invalid expiration date admin de Sie haben ein ungültiges Ablaufdatum angegeben

View File

@ -639,6 +639,7 @@ wrong account type: %1 is no %2 !!! admin en Wrong account type: %1 is NO %2 !
wrong admin-account or -password !!! admin en Wrong admin account or password!
xml-rpc admin en XML-RPC
yes, but no scayt admin en Yes, but no Spell Check As You Type (online)
yes, use browser based spell checking engine admin en Yes, use browser based spell checking engine
yes, use webspellchecker admin en Yes, use online WebSpellChecker
you can only change the hash, if you set a random password or currently use plaintext passwords! admin en You can change the hash only, if you set a random password or currently use plaintext passwords!
you have entered an invalid expiration date admin en You have entered an invalid expiration date!