mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #68 from openclassify/vedatakd
fixed create City && fixed create ad
This commit is contained in:
commit
aa6e16b83f
@ -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();
|
||||
}
|
||||
|
||||
@ -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">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user