diff --git a/timesheet/setup/default_records.inc.php b/timesheet/setup/default_records.inc.php index 7e2c323f69..dbc17ce989 100644 --- a/timesheet/setup/default_records.inc.php +++ b/timesheet/setup/default_records.inc.php @@ -6,6 +6,7 @@ * @author Nathan Gray * @package timesheet * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ */ foreach(array( diff --git a/timesheet/setup/tables_update.inc.php b/timesheet/setup/tables_update.inc.php index 602bec4745..7036087e16 100644 --- a/timesheet/setup/tables_update.inc.php +++ b/timesheet/setup/tables_update.inc.php @@ -118,5 +118,8 @@ function timesheet_upgrade1_9_001() function timesheet_upgrade1_9_002() { + // switch history / delete prevention on, like for new installs, so only admins can finally delete timesheets + config::save_value('history', 'history', 'timesheet'); + return $GLOBALS['setup_info']['timesheet']['currentver'] = '14.1'; }