View Issue Details

IDProjectCategoryView StatusLast Update
0005317OXID eShop (all versions)1.03. Basket, checkout processpublic2014-02-21 14:28
Reporterunited20 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.7.6 / 5.0.6 
Target VersionFixed in Version4.9.0_5.2.0_beta1 
Summary0005317: Compare of a non existing objects in basketcontents.tpl on Azure theme
DescriptionOn the template basketcontents.tpl in line 189 you compare two non existing objects. In some cases one object is null.

Wrong code:

[{if $dRegUnitPrice->getPrice() > $dUnitPrice->getPrice() }]

Workaround:

[{if $dRegUnitPrice && $dUnitPrice && $dRegUnitPrice->getPrice() > $dUnitPrice->getPrice() }]
TagsNo tags attached.
ThemeAzure
BrowserAll
PHP Versionany
MySQL Versionany

Activities

svetlana

2013-07-31 15:02

reporter   ~0008940

Reminder sent to: united20

Thank you very much for your bug report. As we saw, you already submitted a complete solution for this issue. If you feel fancy, you'd also have the possibility to contribute your changes directly to our GitHub repository on https://github.com/OXID-eSales/oxideshop_ce/. Please leave a note there with the bug number you fixed so we can close this issue in the bug tracker."

tadas

2014-02-21 14:28

reporter   ~0009585

Added check if elements are not null before comparing them