]> git.agnieray.net Git - galette.git/commitdiff
Password is not required when editing
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 18 Oct 2021 05:32:05 +0000 (07:32 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 18 Oct 2021 05:32:05 +0000 (07:32 +0200)
galette/lib/Galette/Controllers/Crud/MembersController.php

index 21136e1c55900c786f631478e326d76cef498fae..95135779b29724373c070da3fd3bb2bc64960567 100644 (file)
@@ -1095,7 +1095,7 @@ class MembersController extends CrudController
         $fc = $this->fields_config;
 
         // password required if we create a new member
-        if ($id === null) {
+        if ($id !== null) {
             $fc->setNotRequired('mdp_adh');
         }