mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1600 fix edit cover photo
This commit is contained in:
parent
6df9b45921
commit
bfd2a7d557
@ -604,8 +604,9 @@ class AdvsController extends PublicController
|
||||
}
|
||||
|
||||
$form->render($request->update_id);
|
||||
$adv = $this->adv_repository->find($request->update_id);
|
||||
|
||||
if ($this->request->address_id != "") {
|
||||
$adv = $form->getFormEntry();
|
||||
$address = $address->find($this->request->address_id);
|
||||
$adv->country_id = $address->country_id;
|
||||
$adv->city = $address->city;
|
||||
@ -618,8 +619,7 @@ class AdvsController extends PublicController
|
||||
$post['id'] = $request->update_id;
|
||||
$events->dispatch(new priceChange($post));//price history
|
||||
if ($request->url == "") {
|
||||
$LastAdv = $advModel->getLastUserAdv();
|
||||
$advRepository->cover_image_update($LastAdv);
|
||||
$advRepository->cover_image_update($adv);
|
||||
}
|
||||
|
||||
if ($form->hasFormErrors()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user