﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking
1507	Hook getAttributes in includes/classes/main.php	info@…	somebody	"Hi,

die Erweiterung der main.php ist mir in Bezug auf die Methode
getAttributes nicht schlüssig:

{{{
//new module support
    $attributes = $this->mainModules->getAttributesSelect($attributes,$paramsArr,$paramsArrOrigin);
}}}

$attributes wird mit der Ergebnis-Refferenz aus der Datenbankabfrage belegt. Diese soll dann durch die Erweiterungen manipuliert werden?
um zum Schluss mit
{{{
return xtc_db_fetch_array($attributes);
}}}
zu antworten?

Ich glaube, die Methode sollte nach ""//new module support"" so lauten:

{{{
  function getAttributes($products_id, $option_id, $value_id, $add_select = '', $left_join = '') {
    [...]
    //new module support
    $attributes = xtc_db_fetch_array($attributes);
    $attributes = $this->mainModules->getAttributesSelect($attributes,$paramsArr,$paramsArrOrigin);
    
    return $attributes;  
  }
}}}

Viele Grüße
Andreas"	Frage	closed	normal	modified-shop-2.0.5.0	Shop	2.0.4.2	fixed				
