forked from extern/egroupware
* 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
|
// allow other apps to add tabs to addressbook edit
|
||||||
$preserve = $content;
|
$preserve = $content;
|
||||||
unset($preserve['jpegphoto']);
|
unset($preserve['jpegphoto'], $content['jpegphoto']); // unused and messes up json encoding (not utf-8)
|
||||||
$content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8)
|
|
||||||
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
|
$this->tmpl->setElementAttribute('tabs', 'add_tabs', true);
|
||||||
$tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs');
|
$tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs');
|
||||||
if (($first_call = !isset($tabs)))
|
if (($first_call = !isset($tabs)))
|
||||||
|
@ -349,7 +349,7 @@
|
|||||||
<row class="dialogHeader">
|
<row class="dialogHeader">
|
||||||
<box align="center">
|
<box align="center">
|
||||||
<hbox disabled="@hidebuttons" class="avatar">
|
<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>
|
</hbox>
|
||||||
</box>
|
</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"/>
|
<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