slackened condition to save downloadable purchase link
This commit is contained in:
parent
feb2ee0ad1
commit
85d3c2b64a
|
|
@ -55,7 +55,7 @@ class DownloadableLinkPurchasedRepository extends Repository
|
|||
*/
|
||||
public function saveLinks($orderItem)
|
||||
{
|
||||
if ($orderItem->type != 'downloadable' || ! isset($orderItem->additional['links']))
|
||||
if (stristr($orderItem->type,'downloadable') === false || ! isset($orderItem->additional['links']))
|
||||
return;
|
||||
|
||||
foreach ($orderItem->additional['links'] as $linkId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue