Commit 24680271 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3908 uid cannot be changed by applying a template

Showing with 8 additions and 0 deletions
+8 -0
...@@ -462,6 +462,14 @@ class user extends simplePlugin ...@@ -462,6 +462,14 @@ class user extends simplePlugin
} }
} }
function adapt_from_template($attrs, $skip = array())
{
if ($this->uid != '') {
$skip[] = 'uid';
}
parent::adapt_from_template($attrs, $skip);
}
function callHook($cmd, $addAttrs = array(), &$returnOutput = array(), &$returnCode = NULL) function callHook($cmd, $addAttrs = array(), &$returnOutput = array(), &$returnCode = NULL)
{ {
$addAttrs['passwordMethod'] = $this->attributesAccess['userPassword']->getMethod(); $addAttrs['passwordMethod'] = $this->attributesAccess['userPassword']->getMethod();
......
  • bmortier @bmortier

    mentioned in issue #1298 (closed)

    By Jonathan Swaelens on 2017-09-02T15:21:21 (imported from GitLab)

    ·

    mentioned in issue #1298 (closed)

    By Jonathan Swaelens on 2017-09-02T15:21:21 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment