Skip to content
Permalink
Browse files

MailTemplate (fixes #2221, #2222 and #2223): MailTemplate used the sa…

…me Paging-reference for all applications which resulted in unexpected behaviors

git-svn-id: http://svn.contrexxlabs.com/contrexx/branches/contrexx_3_2@31846 5ce06e5d-2b28-0410-aa6a-b3cd9cf52d8a
  • Loading branch information...
daeppen committed Jul 20, 2014
1 parent 754b886 commit 63fd745966673d216cfae54d980c674ffac462cd
Showing with 3 additions and 2 deletions.
  1. +3 −2 core/MailTemplate.class.php
@@ -1055,11 +1055,12 @@ static function overview($section, $group, $limit=0, $useDefaultActs = true)
// Template titles are shown in the current language only, no need
// (and no way either) to load them all. Names are shown in the
// currently active frontend language only.
$pagingParameterName = $section.'_'.$group;
$arrTemplates = self::getArray(
$section,
FRONTEND_LANG_ID,
$objSorting->getOrder(),
Paging::getPosition(),
Paging::getPosition($pagingParameterName),
$limit,
$count
);
@@ -1073,7 +1074,7 @@ static function overview($section, $group, $limit=0, $useDefaultActs = true)
'CORE_MAILTEMPLATE_PROTECTED' => $objSorting->getHeaderForField('protected'),
'PAGING' => Paging::get(
$uri_overview, $_CORELANG['TXT_CORE_MAILTEMPLATE_PAGING'],
$count, $limit, true),
$count, $limit, true, null, $pagingParameterName),
'URI_BASE' => $uri,
'URI_EDIT' => $uri_edit,
'CORE_MAILTEMPLATE_COLSPAN' => 5 + count($arrLanguageName),

0 comments on commit 63fd745

Please sign in to comment.
You can’t perform that action at this time.