View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003136 | OXID eShop (all versions) | 1.02. Price calculations (discounts, coupons, additional costs etc.) | public | 2011-08-11 15:14 | 2012-12-07 15:07 |
Reporter | Reignman | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.0 revision 34568 | ||||
Fixed in Version | 4.5.2 revision 38481 | ||||
Summary | 0003136: delete() of oxvoucherseries has no return | ||||
Description | Function is missing a return value. For me its bad because ERP doesnt return blResult on successful delete. /** * Override delete function so we can delete user group and article or category relations first. * * @param string $sOxId object ID (default null) * * @return null */ public function delete( $sOxId = null ) { if ( !$sOxId ) { $sOxId = $this->getId(); } if ( !$this->canDelete( $sOxId ) ) { return false; } $this->unsetDiscountRelations(); $this->unsetUserGroups(); $this->deleteVoucherList(); parent::delete( $sOxId ); } | ||||
Steps To Reproduce | obvious | ||||
Additional Information | fixed by writing a module with return. | ||||
Tags | Discount | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||