Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from martijn-dolphiq/master
Browse files Browse the repository at this point in the history
Composer 2 compatibility fix
  • Loading branch information
sstraakenbroek authored Feb 28, 2023
2 parents 1a5ce93 + 32a9273 commit ebc8a0a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Forms Changelog

## 1.1.4 - 2023-02-28
### Fixed
- Changed the lowercase "l" to an UperCase "L" to fix a Composer 2 compatibility issue.

## 1.1.1 - 2019-10-03

### Fixed
Expand All @@ -25,4 +29,4 @@
- Easily enable/disable the form in the settings.
- Easily enable/disable logging form entries into the database in the settings.
- Control the recipient and subject of the contact requests e-mails in the plugin settings per form.
- Twig extensions, form examples and E-mail examples.
- Twig extensions, form examples and E-mail examples.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dolphiq/craft3-forms",
"description": "Craft 3 formulieren",
"version": "1.1.3",
"version": "1.1.4",
"keywords": [
"craft",
"craft3",
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/MainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Craft;
use craft\web\View;
use plugins\dolphiq\form\models\Form;
use plugins\dolphiq\form\models\log;
use plugins\dolphiq\form\models\Log;
use plugins\dolphiq\form\models\Settings;
use plugins\dolphiq\form\Plugin;
use Yii;
Expand Down Expand Up @@ -137,7 +137,7 @@ public function actionIndex($handle=null, $params = [])
private function saveInDb($form, $mail = null){

if($form->getSettings()->enabled_logging == true) {
$log = new log();
$log = new Log();
$log->form_data = json_encode($form->attributes);
$log->server_data = json_encode($_SERVER);
$log->html_mail = $mail;
Expand Down
4 changes: 2 additions & 2 deletions src/models/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @property string $html_mail
* @property string $created_at
*/
class log extends \yii\db\ActiveRecord {
class Log extends \yii\db\ActiveRecord {

/**
* @return string the name of the table associated with this ActiveRecord class.
Expand All @@ -33,4 +33,4 @@ public function rules()
['form_data', 'server_data', 'html_mail', 'required']
];
}
}
}

0 comments on commit ebc8a0a

Please sign in to comment.