mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -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');
|
$messages->pull('error');
|
||||||
$isActiveDopings = $advModel->is_enabled('dopings');
|
$isActiveDopings = $advModel->is_enabled('dopings');
|
||||||
if ($request->action == "update") {
|
if ($request->action == "update") {
|
||||||
$error = $form->build()->validate()->getFormErrors()->getMessages();
|
$error = $form->build($request->update_id)->validate()->getFormErrors()->getMessages();
|
||||||
if (!empty($error)) {
|
if (!empty($error)) {
|
||||||
return $this->redirect->back();
|
return $this->redirect->back();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% include "theme::partials/messages" %}
|
{% 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 }}
|
{{ form_open()|raw }}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user