diff --git a/main/admin/settings.php b/main/admin/settings.php index d0e109aabc..f5da6fa426 100644 --- a/main/admin/settings.php +++ b/main/admin/settings.php @@ -436,6 +436,8 @@ $action_images['templates'] = 'template.png'; $action_images['plugins'] = 'plugins.png'; $action_images['shibboleth'] = 'shibboleth.png'; $action_images['facebook'] = 'facebook.png'; +// @todo Use a different image. +$action_images['logtransactions'] = 'tuning.png'; $action_array = array(); $resultcategories = array(); @@ -460,6 +462,7 @@ $resultcategories[] = array('category' => 'LDAP'); $resultcategories[] = array('category' => 'CAS'); $resultcategories[] = array('category' => 'Shibboleth'); $resultcategories[] = array('category' => 'Facebook'); +$resultcategories[] = array('category' => 'LogTransactions'); foreach ($resultcategories as $row) { diff --git a/main/install/1.10.0/db_main.sql b/main/install/1.10.0/db_main.sql index 9a54f2e6e4..793bfd8a12 100644 --- a/main/install/1.10.0/db_main.sql +++ b/main/install/1.10.0/db_main.sql @@ -913,7 +913,8 @@ VALUES ('allow_teachers_to_create_sessions', NULL,'radio','Session','false','AllowTeachersToCreateSessionsTitle','AllowTeachersToCreateSessionsComment', NULL, NULL, 0), ('chamilo_database_version', NULL, 'textfield', NULL, '1.10.0.001','DatabaseVersion','', NULL, NULL, 0), ('use_virtual_keyboard', NULL, 'radio', 'Platform', 'false','ShowVirtualKeyboardTitle','ShowVirtualKeyboardComment', NULL, NULL, 1), -('disable_copy_paste', NULL, 'radio', 'Platform', 'false','DisableCopyPasteTitle','DisableCopyPasteComment', NULL, NULL, 1); +('disable_copy_paste', NULL, 'radio', 'Platform', 'false','DisableCopyPasteTitle','DisableCopyPasteComment', NULL, NULL, 1), +('log_transactions','exercise','checkbox','LogTransactions','false','LogTransactionsForExercises','LogTransactionsForExercisesComment',NULL,'LogTransactionsForExercisesText', 1); UNLOCK TABLES; /*!40000 ALTER TABLE settings_current ENABLE KEYS */; diff --git a/main/install/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql b/main/install/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql index 9609cb6181..ff798d81db 100755 --- a/main/install/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql +++ b/main/install/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql @@ -243,5 +243,8 @@ ALTER TABLE c_quiz_category MODIFY c_id INT NOT NULL; ALTER TABLE c_quiz_category DROP PRIMARY KEY; ALTER TABLE c_quiz_category ADD COLUMN iid INT unsigned NOT NULL auto_increment PRIMARY KEY; +-- Add new configuration setting to activate transaction logging. +INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('log_transactions','exercise','checkbox','LogTransactions','false','LogTransactionsForExercises','LogTransactionsForExercisesComment',NULL,'LogTransactionsForExercisesText', 1); + -- Do not move this UPDATE settings_current SET selected_value = '1.10.0.001' WHERE variable = 'chamilo_database_version'; diff --git a/main/lang/english/admin.inc.php b/main/lang/english/admin.inc.php index 1a7840a59e..9fdb8daf4a 100644 --- a/main/lang/english/admin.inc.php +++ b/main/lang/english/admin.inc.php @@ -1676,4 +1676,8 @@ $SpaceUsedOnSystemCannotBeMeasuredOnWindows = "The space used on disk cannot be $XOldTablesDeleted = "%d old tables deleted"; $XOldDatabasesDeleted = "%d old databases deleted"; $ExtensionShouldBeLoaded = "This extension should be loaded."; -?> \ No newline at end of file +$LogTransactions = "Log Transactions"; +$LogTransactionsForExercises = "Log Transactions for Exercise tool."; +$LogTransactionsForExercisesText = "Log Exercises."; +$LogTransactionsForExercisesComment = "When enabled, transactions will be saved. "; +?>