Commit 5c4d3807 by Julien Jorry

Fix bug for add groupe for contact

parent 1ed0b186
......@@ -30,7 +30,7 @@ $(document).ready(function() {
} else {
$('.comptoirsgeres_select').addClass('hide')
}
} else if (label.includes('groupe')) {
} else if (label.includes('groupe') || label.includes('contact')) {
if (isChecked) {
$('.groupesgeres_select').removeClass('hide')
} else {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -12,7 +12,7 @@
"admin": {
"js": [
"/build/runtime.6ad5c9da.js",
"/build/admin.7f86a232.js"
"/build/admin.15535d30.js"
],
"css": [
"/build/admin.87a6bc21.css"
......
......@@ -2,7 +2,7 @@
"build/app.css": "/build/app.1fb37df4.css",
"build/app.js": "/build/app.498d6ed6.js",
"build/admin.css": "/build/admin.87a6bc21.css",
"build/admin.js": "/build/admin.7f86a232.js",
"build/admin.js": "/build/admin.15535d30.js",
"build/runtime.js": "/build/runtime.6ad5c9da.js",
"build/images/fa-solid-900.svg": "/build/images/fa-solid-900.a838c42a.svg",
"build/images/fa-brands-400.svg": "/build/images/fa-brands-400.05d20183.svg",
......
......@@ -372,7 +372,7 @@ class UserAdmin extends BaseUserAdmin
foreach ($possiblegroups as $possiblegroup) {
if ('Comptoir' == $possiblegroup->getName()) {
$isComptoir = true;
} elseif ('Gestionnaire de Groupe' == $possiblegroup->getName()) {
} elseif ('Gestionnaire de Groupe' == $possiblegroup->getName() || 'Contact' == $possiblegroup->getName()) {
$isGroup = true;
} elseif ('Adherent' == $possiblegroup->getName() && null == $user->getAdherent()) {
$groupeByDefault = $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(Groupe::class)->findAll()[0];
......
Markdown is supported
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