From ded881a382cd6b67ec6d9e24d29a3ae8649e8c72 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 25 May 2015 09:13:39 -0500 Subject: [PATCH 1/3] Fix missing comment field in c_calendar_event --- main/install/database.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/main/install/database.sql b/main/install/database.sql index b331eed32a..8ca96d6025 100644 --- a/main/install/database.sql +++ b/main/install/database.sql @@ -3690,6 +3690,7 @@ CREATE TABLE c_calendar_event( parent_event_id INT NULL, session_id int unsigned NOT NULL default 0, all_day INT NOT NULL DEFAULT 0, + comment TEXT, PRIMARY KEY (id, c_id) ); From d8831cd7a3573155c9b82000abe728526ce40e2c Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 25 May 2015 09:17:21 -0500 Subject: [PATCH 2/3] Fix duplicate setting insert - refs #7538 --- main/install/data.sql | 3 --- 1 file changed, 3 deletions(-) diff --git a/main/install/data.sql b/main/install/data.sql index f4c735bec1..e5692f976d 100644 --- a/main/install/data.sql +++ b/main/install/data.sql @@ -334,7 +334,6 @@ VALUES ('add_gradebook_certificates_cron_task_enabled', NULL, 'radio', 'Tools', 'false', 'GradebookCronTaskGenerationTitle', 'GradebookCronTaskGenerationComment', NULL, NULL, 1), ('openbadges_backpack', NULL, 'textfield', 'Gradebook', 'https://backpack.openbadges.org/', 'OpenBadgesBackpackUrlTitle', 'OpenBadgesBackpackUrlComment', NULL, NULL, 1), ('cookie_warning', NULL, 'radio', 'Tools', 'false', 'CookieWarningTitle', 'CookieWarningComment', NULL, NULL, 1), -('prevent_session_admins_to_manage_all_users', NULL, 'radio', 'Session', 'false', 'PreventSessionAdminsToManageAllUsersTitle', 'PreventSessionAdminsToManageAllUsersComment', NULL, NULL, 1), ('hide_course_group_if_no_tools_available', NULL, 'radio', 'Tools', 'false', 'HideCourseGroupIfNoToolAvailableTitle', 'HideCourseGroupIfNoToolAvailableComment', NULL, NULL, 1), ('catalog_allow_session_auto_subscription', NULL, 'radio', 'Session', 'true', 'CatalogueAllowSessionAutoSubscriptionTitle', 'CatalogueAllowSessionAutoSubscriptionTitle', NULL, NULL, 1), ('registration.soap.php.decode_utf8', NULL, 'radio', 'Platform', 'false', 'SoapRegistrationDecodeUtf8Title', 'SoapRegistrationDecodeUtf8Comment', NULL, NULL, 1), @@ -716,8 +715,6 @@ VALUES ('add_gradebook_certificates_cron_task_enabled', 'false', 'No'), ('cookie_warning', 'true', 'Yes'), ('cookie_warning', 'false', 'No'), -('prevent_session_admins_to_manage_all_users', 'true', 'Yes'), -('prevent_session_admins_to_manage_all_users', 'false', 'No'), ('hide_course_group_if_no_tools_available', 'true', 'Yes'), ('hide_course_group_if_no_tools_available', 'false', 'No'), ('catalog_allow_session_auto_subscription', 'true', 'Yes'), From da959c36e04a0b26eeb6c0baa44470420de37908 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 25 May 2015 09:22:41 -0500 Subject: [PATCH 3/3] Fix default values of new settings - refs #7538 --- main/install/data.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/install/data.sql b/main/install/data.sql index e5692f976d..8fb2fe36df 100644 --- a/main/install/data.sql +++ b/main/install/data.sql @@ -310,7 +310,7 @@ VALUES ('meta_image_path', NULL, 'textfield', 'Tracking', '', 'MetaImagePathTitle', 'MetaImagePathComment', NULL, NULL, 1), ('allow_teachers_to_create_sessions', NULL, 'radio', 'Session', 'false', 'AllowTeachersToCreateSessionsTitle', 'AllowTeachersToCreateSessionsComment', NULL, NULL, 0), ('allow_lp_return_link', NULL, 'radio', 'Course', 'true', 'AllowLearningPathReturnLinkTitle', 'AllowLearningPathReturnLinkComment', NULL, NULL, 1), -('hide_scorm_export_link', NULL, 'radio', 'Course', 'true', 'HideScormExportLinkTitle', 'HideScormExportLinkComment', NULL, NULL, 1), +('hide_scorm_export_link', NULL, 'radio', 'Course', 'false', 'HideScormExportLinkTitle', 'HideScormExportLinkComment', NULL, NULL, 1), ('hide_scorm_copy_link', NULL, 'radio', 'Course', 'false', 'HideScormCopyLinkTitle', 'HideScormCopyLinkComment', NULL, NULL, 1), ('hide_scorm_pdf_link', NULL, 'radio', 'Course', 'false', 'HideScormPdfLinkTitle', 'HideScormPdfLinkComment', NULL, NULL, 1), ('session_days_before_coach_access', NULL, 'textfield', 'Session', '0', 'SessionDaysBeforeCoachAccessTitle', 'SessionDaysBeforeCoachAccessComment', NULL, NULL, 1), @@ -323,22 +323,22 @@ VALUES ('catalog_show_courses_sessions', NULL, 'radio', 'Platform', '0', 'CoursesCatalogueShowSessionsTitle', 'CoursesCatalogueShowSessionsComment', NULL, NULL, 1), ('auto_detect_language_custom_pages', NULL, 'radio', 'Platform', 'true', 'AutoDetectLanguageCustomPagesTitle', 'AutoDetectLanguageCustomPagesComment', NULL, NULL, 1), ('lp_show_reduced_report', NULL, 'radio', 'Tools', 'false', 'LearningPathShowReducedReportTitle', 'LearningPathShowReducedReportComment', NULL, NULL, 1), -('allow_session_course_copy_for_teachers', NULL, 'radio', 'Session', 'true', 'AllowSessionCourseCopyForTeachersTitle', 'AllowSessionCourseCopyForTeachersComment', NULL, NULL, 1), +('allow_session_course_copy_for_teachers', NULL, 'radio', 'Session', 'false', 'AllowSessionCourseCopyForTeachersTitle', 'AllowSessionCourseCopyForTeachersComment', NULL, NULL, 1), ('hide_logout_button', NULL, 'radio', 'Platform', 'false', 'HideLogoutButtonTitle', 'HideLogoutButtonComment', NULL, NULL, 1), -('redirect_admin_to_courses_list', NULL, 'radio', 'Platform', 'true', 'RedirectAdminToCoursesListTitle', 'RedirectAdminToCoursesListComment', NULL, NULL, 1), +('redirect_admin_to_courses_list', NULL, 'radio', 'Platform', 'false', 'RedirectAdminToCoursesListTitle', 'RedirectAdminToCoursesListComment', NULL, NULL, 1), ('course_images_in_courses_list', NULL, 'radio', 'Course', 'false', 'CourseImagesInCoursesListTitle', 'CourseImagesInCoursesListComment', NULL, NULL, 1), ('student_publication_to_take_in_gradebook', NULL, 'radio', 'Gradebook', 'first', 'StudentPublicationSelectionForGradebookTitle', 'StudentPublicationSelectionForGradebookComment', NULL, NULL, 1), ('certificate_filter_by_official_code', NULL, 'radio', 'Gradebook', 'false', 'FilterCertificateByOfficialCodeTitle', 'FilterCertificateByOfficialCodeComment', NULL, NULL, 1), ('exercise_max_ckeditors_in_page', NULL, 'textfield', 'Tools', '0', 'MaxCKeditorsOnExerciseResultsPageTitle', 'MaxCKeditorsOnExerciseResultsPageComment', NULL, NULL, 1), -('document_if_file_exists_option', NULL, 'radio', 'Tools', 'overwrite', 'DocumentDefaultOptionIfFileExistsTitle', 'DocumentDefaultOptionIfFileExistsComment', NULL, NULL, 1), +('document_if_file_exists_option', NULL, 'radio', 'Tools', 'rename', 'DocumentDefaultOptionIfFileExistsTitle', 'DocumentDefaultOptionIfFileExistsComment', NULL, NULL, 1), ('add_gradebook_certificates_cron_task_enabled', NULL, 'radio', 'Tools', 'false', 'GradebookCronTaskGenerationTitle', 'GradebookCronTaskGenerationComment', NULL, NULL, 1), ('openbadges_backpack', NULL, 'textfield', 'Gradebook', 'https://backpack.openbadges.org/', 'OpenBadgesBackpackUrlTitle', 'OpenBadgesBackpackUrlComment', NULL, NULL, 1), ('cookie_warning', NULL, 'radio', 'Tools', 'false', 'CookieWarningTitle', 'CookieWarningComment', NULL, NULL, 1), ('hide_course_group_if_no_tools_available', NULL, 'radio', 'Tools', 'false', 'HideCourseGroupIfNoToolAvailableTitle', 'HideCourseGroupIfNoToolAvailableComment', NULL, NULL, 1), -('catalog_allow_session_auto_subscription', NULL, 'radio', 'Session', 'true', 'CatalogueAllowSessionAutoSubscriptionTitle', 'CatalogueAllowSessionAutoSubscriptionTitle', NULL, NULL, 1), +('catalog_allow_session_auto_subscription', NULL, 'radio', 'Session', 'false', 'CatalogueAllowSessionAutoSubscriptionTitle', 'CatalogueAllowSessionAutoSubscriptionTitle', NULL, NULL, 1), ('registration.soap.php.decode_utf8', NULL, 'radio', 'Platform', 'false', 'SoapRegistrationDecodeUtf8Title', 'SoapRegistrationDecodeUtf8Comment', NULL, NULL, 1), ('allow_delete_attendance', NULL, 'radio', 'Tools', 'false', 'AttendanceDeletionEnableTitle', 'AttendanceDeletionEnableComment', NULL, NULL, 1), -('gravatar_enabled', NULL, 'radio', 'Platform', 'true', 'GravatarPicturesTitle', 'GravatarPicturesComment', NULL, NULL, 1), +('gravatar_enabled', NULL, 'radio', 'Platform', 'false', 'GravatarPicturesTitle', 'GravatarPicturesComment', NULL, NULL, 1), ('gravatar_type', NULL, 'radio', 'Platform', 'mm', 'GravatarPicturesTypeTitle', 'GravatarPicturesTypeComment', NULL, NULL, 1), ('limit_session_admin_role', NULL, 'radio', 'Session', 'false', 'SessionAdminPermissionsLimitTitle', 'SessionAdminPermissionsLimitComment', NULL, NULL, 1), ('show_session_description', NULL, 'radio', 'Session', 'false', 'ShowSessionDescriptionTitle', 'ShowSessionDescriptionComment', NULL, NULL, 1),