Skip to content
Code-Schnipsel Gruppen Projekte
Commit ae5498ee erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev' into 'next'

fix: uncaught TypeError: Products::getProduct(): Argument #1 ($pid) must be of type int

See merge request !51
Übergeordnete f12402f3 bb298a57
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!52Next,!51fix: uncaught TypeError: Products::getProduct(): Argument #1 ($pid) must be of type int
Pipeline-Nr. 5279 bestanden
...@@ -241,15 +241,15 @@ public function getView(): ArticleView ...@@ -241,15 +241,15 @@ public function getView(): ArticleView
/** /**
* Return the Article ID * Return the Article ID
* *
* @return string|int * @return int
*/ */
public function getId() public function getId()
{ {
if (isset($this->attributes['id'])) { if (isset($this->attributes['id'])) {
return $this->attributes['id']; return (int)$this->attributes['id'];
} }
return ''; return 0;
} }
/** /**
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren