mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -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);
|
||||
$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;
|
||||
@ -649,8 +650,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