fix behaviors buttons according to settings

This commit is contained in:
Jean-Christian Paul Denis 2021-09-25 17:49:48 +02:00
parent 13e7fc83e8
commit 3e06d6d3b2
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -65,6 +65,11 @@ class translaterAdminBehaviors
) {
return null;
}
if (self::translater($list->core)->getSetting('hide_default')
&& in_array($id, dctranslater::$default_distrib_modules[$prop['type']])
) {
return null;
}
return
' <input type="submit" name="translater[' .