Es gibt ein kleine bug wenn ich mache ein neue kategorie, das gewählte template is nicht speichern und muss manuelle wieder noch einmal erstellt sein:

Dom
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
}
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
} else {
//2008-06-25 timo.trautmann also set default template if it is selcted by user and there is no default template
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
}
}
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
}
Code: Alles auswählen
if ($template = $templateCollection->next())
{
$idtpl = $template->get("idtpl");
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
}
/* Assign template, if default template exists */
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
} else {
//2008-06-25 timo.trautmann also set default template if it is selcted by user and there is no default template
if ($iIdtplcfg > 0) {
$idtpl = $iIdtplcfg;
$catCollection = new cApiCategoryLanguageCollection("idcat = '$tmp_newid'");
while ($cat = $catCollection->next())
{
$cat->assignTemplate($idtpl);
}
}
}