FIX Only template of enabled modules visible
This commit is contained in:
parent
ef182bed07
commit
4ec4801c77
@ -429,7 +429,7 @@ if ($action == 'delete')
|
||||
}
|
||||
|
||||
|
||||
$sql = "SELECT rowid as rowid, label, type_template, lang, fk_user, private, position, topic, joinfiles, content_lines, content, enabled, active";
|
||||
$sql = "SELECT rowid as rowid, module, label, type_template, lang, fk_user, private, position, topic, joinfiles, content_lines, content, enabled, active";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."c_email_templates";
|
||||
$sql .= " WHERE entity IN (".getEntity('email_template').")";
|
||||
if (!$user->admin)
|
||||
@ -779,6 +779,13 @@ if ($resql)
|
||||
|
||||
print "</tr>\n";
|
||||
} else {
|
||||
if ($obj->module) {
|
||||
$tempmodulekey = $obj->module;
|
||||
if (empty($conf->$tempmodulekey) || empty($conf->$tempmodulekey->enabled)) {
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$keyforobj = 'type_template';
|
||||
if (!in_array($obj->$keyforobj, array_keys($elementList)))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user