mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
Merge pull request #591 from openclassify/vedatakd
#1600 fix edit cover photo
This commit is contained in:
commit
785cd144e6
@ -635,8 +635,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;
|
||||||
@ -649,8 +650,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