mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 14:51:14 +01:00
FIX Article: Use default picture selection in briefpapier
This commit is contained in:
parent
1775d0b47f
commit
543c52f2f1
@ -3525,7 +3525,7 @@ class Briefpapier extends SuperFPDF {
|
|||||||
($this->doctype == "gutschrift" && $this->getStyleElement("gutschrift_artikelbild")) ||
|
($this->doctype == "gutschrift" && $this->getStyleElement("gutschrift_artikelbild")) ||
|
||||||
($this->doctype == "angebot" && $this->getStyleElement("angebot_artikelbild"))
|
($this->doctype == "angebot" && $this->getStyleElement("angebot_artikelbild"))
|
||||||
){
|
){
|
||||||
$datei = $this->app->DB->Select("SELECT datei FROM `datei_stichwoerter` WHERE subjekt='Shopbild' AND objekt='Artikel' AND parameter='" . $item['artikel'] . "' ORDER by sort ASC LIMIT 1");
|
$datei = $this->app->erp->GetArtikelStandardbild($item['artikel'],true);
|
||||||
if(!empty($datei)){
|
if(!empty($datei)){
|
||||||
$datei = $this->app->DB->Select("SELECT id FROM datei_version WHERE datei = '$datei' ORDER BY id DESC LIMIT 1");
|
$datei = $this->app->DB->Select("SELECT id FROM datei_version WHERE datei = '$datei' ORDER BY id DESC LIMIT 1");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user