mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -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);
|
$form->render($request->update_id);
|
||||||
|
$adv = $this->adv_repository->find($request->update_id);
|
||||||
|
|
||||||
if ($this->request->address_id != "") {
|
if ($this->request->address_id != "") {
|
||||||
$adv = $form->getFormEntry();
|
|
||||||
$address = $address->find($this->request->address_id);
|
$address = $address->find($this->request->address_id);
|
||||||
$adv->country_id = $address->country_id;
|
$adv->country_id = $address->country_id;
|
||||||
$adv->city = $address->city;
|
$adv->city = $address->city;
|
||||||
@ -618,8 +619,7 @@ class AdvsController extends PublicController
|
|||||||
$post['id'] = $request->update_id;
|
$post['id'] = $request->update_id;
|
||||||
$events->dispatch(new priceChange($post));//price history
|
$events->dispatch(new priceChange($post));//price history
|
||||||
if ($request->url == "") {
|
if ($request->url == "") {
|
||||||
$LastAdv = $advModel->getLastUserAdv();
|
$advRepository->cover_image_update($adv);
|
||||||
$advRepository->cover_image_update($LastAdv);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($form->hasFormErrors()) {
|
if ($form->hasFormErrors()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user