From 5bf2721e7504cb04821093e835acefe51cf61584 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 8 Apr 2006 06:24:22 +0000 Subject: [PATCH] fixed handling of timesheets in templates or copying of projects: timesheets are NOT copied or linked to the new project --> empty copy method returning false --- timesheet/inc/class.datasource_timesheet.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/timesheet/inc/class.datasource_timesheet.inc.php b/timesheet/inc/class.datasource_timesheet.inc.php index 3c0a8d2cd5..6070fdb987 100644 --- a/timesheet/inc/class.datasource_timesheet.inc.php +++ b/timesheet/inc/class.datasource_timesheet.inc.php @@ -83,4 +83,17 @@ class datasource_timesheet extends datasource } return $ds; } + + /** + * Copy method (usally copies a projectelement) returns only false to prevent copying + * + * @param array $element source project element representing an InfoLog entry, $element['pe_app_id'] = info_id + * @param int $target target project id + * @param array $target_data=null data of target-project, atm not used by the infolog datasource + * @return array/boolean array(info_id,link_id) on success, false otherwise + */ + function copy($element,$target,$extra=null) + { + return false; + } }