mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
* Addressbook: fix photo was lost when non-admin user edited own account
This commit is contained in:
parent
a2e62e6262
commit
f9dd120d32
@ -2511,8 +2511,7 @@ window.egw_LAB.wait(function() {
|
||||
|
||||
// allow other apps to add tabs to addressbook edit
|
||||
$preserve = $content;
|
||||
unset($preserve['jpegphoto']);
|
||||
$content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8)
|
||||
unset($preserve['jpegphoto'], $content['jpegphoto']); // unused and messes up json encoding (not utf-8)
|
||||
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
|
||||
$tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs');
|
||||
if (($first_call = !isset($tabs)))
|
||||
|
@ -349,7 +349,7 @@
|
||||
<row class="dialogHeader">
|
||||
<box align="center">
|
||||
<hbox disabled="@hidebuttons" class="avatar">
|
||||
<avatar contact_id="$cont[id]" crop="false" editable="true"/>
|
||||
<avatar contact_id="$cont[id]" src="$cont[photo]" crop="false" editable="true"/>
|
||||
</hbox>
|
||||
</box>
|
||||
<textbox id="n_fn" blur="Name" no_lang="1" tabindex="-1" class="cursorHand et2_fullWidth" onclick="jQuery('table.editname').css('display','inline'); var focElem = document.getElementById(form::name('n_prefix')); if (!(typeof(focElem) == 'undefined') && typeof(focElem.focus)=='function') document.getElementById(form::name('n_prefix')).focus();" autocomplete="name"/>
|
||||
|
Loading…
Reference in New Issue
Block a user