Modify

Opened 7 years ago

Closed 7 years ago

#1507 closed Frage (fixed)

Hook getAttributes in includes/classes/main.php

Reported by: info@… Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.5.0
Component: Shop Version: 2.0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Torsten Riemer)

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

Attachments (0)

Change History (2)

comment:1 by Torsten Riemer, 7 years ago

Description: modified (diff)

comment:2 by Gerhard Waldemair, 7 years ago

Resolution: fixed
Status: newclosed

In 11701:

fix #1507

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.