Skip to content

Commit 3b02834

Browse files
committed
Merge branch 'master' of github.com:pceuropa/yii2-forms
2 parents 7780de3 + 5348d25 commit 3b02834

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ URLs for the translating tool:
6767
'formsTable' => '{{%forms}}',
6868
'formDataTable' => 'form_',
6969
'sendEmail' => true,
70+
'testMode' => false,
71+
'easyMode' => true,
7072
'emailSender' => 'info@email.net',
7173
'rules' => [
7274
[

assets/form-builder/js/forms/examples.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ temp = [
723723
"class": "form-control",
724724
"items": [
725725
{
726-
"text": "2 000 000 >",
726+
"text": "> 2 000 000",
727727
"value": "2000000+"
728728
},
729729
{

controllers/ModuleController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function actionView(string $url) {
9393
$this->sendEmail($data, $form);
9494
}
9595

96-
return $this->redirect(['index']);
96+
return $this->redirect(['list' , 'id' => $form->form_id]);
9797
}
9898
return $this->render('view', [ 'form' => $form] );
9999
}
@@ -102,8 +102,8 @@ public function actionList(int $id) {
102102
$form = FormModel::findModel($id);
103103

104104
return $this->render('list', [
105-
'form' => $form,
106-
'dataProvider' => new ActiveDataProvider([
105+
'form' => $form,
106+
'dataProvider' => new ActiveDataProvider([
107107
'query' => (new Query)->from( $this->module->formDataTable.$id ),
108108
'db' => $this->module->db
109109
]),

0 commit comments

Comments
 (0)