Merge pull request #68 from openclassify/vedatakd

fixed create City && fixed create ad
This commit is contained in:
Fatih Alp 2019-08-21 09:53:31 +03:00 committed by GitHub
commit aa6e16b83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ class AdvsController extends PublicController
$messages->pull('error');
$isActiveDopings = $advModel->is_enabled('dopings');
if ($request->action == "update") {
$error = $form->build()->validate()->getFormErrors()->getMessages();
$error = $form->build($request->update_id)->validate()->getFormErrors()->getMessages();
if (!empty($error)) {
return $this->redirect->back();
}

View File

@ -2,7 +2,7 @@
{% block content %}
{% include "theme::partials/messages" %}
{% set form = form('advs', app.request.query|keys|first).entry(id).get() %}
{% set form = form('location', app.request.query|keys|first).entry(id).get() %}
{{ form_open()|raw }}
<div class="container-fluid">