mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
#2545 packages error
This commit is contained in:
parent
a20e7dfbb8
commit
b00f3d07df
@ -869,8 +869,12 @@ class AdvsController extends PublicController
|
|||||||
if ($packageEnabled
|
if ($packageEnabled
|
||||||
&& \request()->pack_id
|
&& \request()->pack_id
|
||||||
&& setting_value('visiosoft.module.packages::allow_pending_ad_creation')) {
|
&& setting_value('visiosoft.module.packages::allow_pending_ad_creation')) {
|
||||||
app('Visiosoft\PackagesModule\Http\Controller\PackageFEController')
|
$package = app('Visiosoft\PackagesModule\Package\Contract\PackageRepositoryInterface')
|
||||||
->packageAddCart(\request()->pack_id, $new->id);
|
->find(\request()->pack_id);
|
||||||
|
if ($package->price) {
|
||||||
|
app('Visiosoft\PackagesModule\Http\Controller\PackageFEController')
|
||||||
|
->packageAddCart(\request()->pack_id, $new->id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect('/advs/edit_advs/' . $new->id);
|
return redirect('/advs/edit_advs/' . $new->id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user