mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 23:36:08 -06:00
#2545 packages error
This commit is contained in:
parent
a20e7dfbb8
commit
b00f3d07df
@ -869,8 +869,12 @@ class AdvsController extends PublicController
|
||||
if ($packageEnabled
|
||||
&& \request()->pack_id
|
||||
&& setting_value('visiosoft.module.packages::allow_pending_ad_creation')) {
|
||||
app('Visiosoft\PackagesModule\Http\Controller\PackageFEController')
|
||||
->packageAddCart(\request()->pack_id, $new->id);
|
||||
$package = app('Visiosoft\PackagesModule\Package\Contract\PackageRepositoryInterface')
|
||||
->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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user