Skip to content
Snippets Groups Projects
Commit 8240cd47 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

dev #53936 : no need to apply variant if its already there

parent 95464f14
Branches
Tags
4 merge requests!2080Sandbox detach zf from storm,!2061Master,!2018Dev#53936 bonus parametrage notice appliquer a d autres profilstype de doc,!2017Dev#53936 bonus parametrage notice appliquer a d autres profilstype de doc
Pipeline #345 passed with stage
in 8 minutes and 25 seconds
......@@ -67,7 +67,8 @@ class Class_Profil_Preferences {
public function applyModulePrefVariant($profile, $module_definition, $variant) {
if (!$profile || !$module_definition || !$variant)
if (!$profile || !$module_definition || !$variant
|| $module_definition->getSubAction() == $variant)
return $this;
$pref = $this->getModulePref($profile, $module_definition);
......
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