switch history / delete prevention on, like for new installs, so only admins can finally delete timesheets

This commit is contained in:
Ralf Becker 2014-07-03 16:16:30 +00:00
parent 2681b2cee2
commit 68ea2c08c1
2 changed files with 4 additions and 0 deletions

View File

@ -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(

View File

@ -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';
}