mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +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 == "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)){
|
||||
$datei = $this->app->DB->Select("SELECT id FROM datei_version WHERE datei = '$datei' ORDER BY id DESC LIMIT 1");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user