From e2744569b21770452ef3618dd03f55e5d01ced07 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 7 May 2015 14:54:16 -0500 Subject: [PATCH] More fixes on previous migration - refs #7538 --- main/install/data.sql | 6 +++--- .../Migrations/Schema/V110/Version20150507152600.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main/install/data.sql b/main/install/data.sql index fd28701f39..086d4951e5 100644 --- a/main/install/data.sql +++ b/main/install/data.sql @@ -1634,11 +1634,11 @@ INSERT INTO settings_current VALUES ('hide_home_top_when_connected', '', 'radio', 'Platform', 'false', 'HideHomeTopContentWhenLoggedInText', 'HideHomeTopContentWhenLoggedInComment', NULL, '', true), ('hide_global_announcements_when_not_connected','','radio','Platform','true', 'HideGlobalAnnouncementsWhenNotLoggedInText','HideGlobalAnnouncementsWhenNotLoggedInComment',NULL,'', true), -('course_creation_use_template','','text','Course','','CourseCreationUsesTemplateText','CourseCreationUsesTemplateComment',NULL,'',true), +('course_creation_use_template','','textfield','Course','','CourseCreationUsesTemplateText','CourseCreationUsesTemplateComment',NULL,'',true), ('allow_strength_pass_checker','','radio','Security','true','EnablePasswordStrengthCheckerText','EnablePasswordStrengthCheckerComment',NULL,'',true), ('allow_captcha','','radio','Security','true','EnableCaptchaText','EnableCaptchaComment',NULL,'',true), -('captcha_number_mistakes_to_block_account','','text','Security',5,'CaptchaNumberOfMistakesBeforeBlockingAccountText','CaptchaNumberOfMistakesBeforeBlockingAccountComment',NULL,'',true), -('captcha_time_to_block','','text','Security',5,'CaptchaTimeAccountIsLockedText','CaptchaTimeAccountIsLockedComment',NULL,'',true), +('captcha_number_mistakes_to_block_account','','textfield','Security',5,'CaptchaNumberOfMistakesBeforeBlockingAccountText','CaptchaNumberOfMistakesBeforeBlockingAccountComment',NULL,'',true), +('captcha_time_to_block','','textfield','Security',5,'CaptchaTimeAccountIsLockedText','CaptchaTimeAccountIsLockedComment',NULL,'',true), ('drh_can_access_all_session_content','','radio','Session','true','DRHAccessToAllSessionContentText','DRHAccessToAllSessionContentComment',NULL,'',true), ('display_groups_forum_in_general_tool','','radio','Tools','true','ShowGroupForaInGeneralToolText','ShowGroupForaInGeneralToolComment',NULL,'',true), ('allow_tutors_to_assign_students_to_session','','radio','Session','false','TutorsCanAssignStudentsToSessionsText','TutorsCanAssignStudentsToSessionsComment',NULL,'',true); diff --git a/src/Chamilo/CoreBundle/Migrations/Schema/V110/Version20150507152600.php b/src/Chamilo/CoreBundle/Migrations/Schema/V110/Version20150507152600.php index 8826f13f43..60d8231b6a 100644 --- a/src/Chamilo/CoreBundle/Migrations/Schema/V110/Version20150507152600.php +++ b/src/Chamilo/CoreBundle/Migrations/Schema/V110/Version20150507152600.php @@ -68,7 +68,7 @@ class Version20150507152600 extends AbstractMigrationChamilo $this->addSettingCurrent( 'course_creation_use_template', '', - 'text', + 'textfield', 'Course', ($value?$value:''), 'CourseCreationUsesTemplateText', @@ -123,7 +123,7 @@ class Version20150507152600 extends AbstractMigrationChamilo $this->addSettingCurrent( 'captcha_number_mistakes_to_block_account', '', - 'text', + 'textfield', 'Security', ($value?$value:5), 'CaptchaNumberOfMistakesBeforeBlockingAccountText', @@ -140,7 +140,7 @@ class Version20150507152600 extends AbstractMigrationChamilo $this->addSettingCurrent( 'captcha_time_to_block', '', - 'text', + 'textfield', 'Security', ($value?$value:5), 'CaptchaTimeAccountIsLockedText',