Skip to content

Commit 5005a27

Browse files
committed
fix(form): default value for language
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 4d54633 commit 5005a27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/mysql/plugin_formcreator_empty.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ CREATE TABLE IF NOT EXISTS `glpi_plugin_formcreator_forms` (
5151
`content` longtext,
5252
`plugin_formcreator_categories_id` int(11) unsigned NOT NULL DEFAULT '0',
5353
`is_active` tinyint(1) NOT NULL DEFAULT '0',
54-
`language` varchar(255) NOT NULL,
54+
`language` varchar(255) NOT NULL DEFAULT '',
5555
`helpdesk_home` tinyint(1) NOT NULL DEFAULT '0',
5656
`is_deleted` tinyint(1) NOT NULL DEFAULT '0',
5757
`validation_required` tinyint(1) NOT NULL DEFAULT '0',

install/upgrade_to_2.12.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function upgrade(Migration $migration) {
5656
$this->migrateReferenceEntity();
5757

5858
$table = 'glpi_plugin_formcreator_forms';
59-
$this->migration->changeField($table, 'language', 'language', 'string', ['after' => 'is_active']);
59+
$this->migration->changeField($table, 'language', 'language', 'string', ['value' => '', 'after' => 'is_active']);
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)