View Issue Details

IDProjectCategoryView StatusLast Update
0001270OXID eShop (all versions)1.03. Basket, checkout processpublic2012-12-07 15:13
Reporterandreas_ziethen Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.5 revision 21618 
Fixed in Version4.1.6 revision 22740 
Summary0001270: not defined array causes warnings in oxorder class - reason: no dynvalue array at payment creditcard
Descriptionoxorder::_setPayment() causes PHP warnings in following code:

------------------------
if ( !$aDynvalue && ( $oUserpayment = $this->getPaymentType() ) ) {
            $aStoredDynvalue = $oUserpayment->getDynValues();
            foreach ( $aStoredDynvalue as $oVal ) {
                $aDynvalue[$oVal->name] = $oVal->value;
            }
        }
------------------------

$aStoredDynvalue is null if paymethod is == oxidcreditcard (look at oxuserpayment::getDynValues() -> null is returned if paymethod is creditcard)
TagsPayment
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

arvydas_vapsva

2009-09-01 15:43

reporter   ~0001602

added is_array() checks, but additionally wrote tests for getDynValues() getters and they showed that on any case array is returned..