1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix for white label licenses

This commit is contained in:
Hillel Coren 2018-09-16 19:21:58 +03:00
parent 39442f48ce
commit 7ad72aa884

View File

@ -823,6 +823,7 @@ class BasePaymentDriver
$license->license_key = Utils::generateLicense(); $license->license_key = Utils::generateLicense();
$license->affiliate_id = $affiliateId; $license->affiliate_id = $affiliateId;
$license->product_id = $productId; $license->product_id = $productId;
$license->is_claimed = 0;
$license->save(); $license->save();
// Add the license key to the invoice content // Add the license key to the invoice content