From a95732eb13d417394fcfc1b5e20f98cacc62d104 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 21 Mar 2010 10:07:16 +0000 Subject: [PATCH] removed no longer used file, which will crash anyway because of old botimesheet class name --- timesheet/fix_lost_links.php | 42 ------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 timesheet/fix_lost_links.php diff --git a/timesheet/fix_lost_links.php b/timesheet/fix_lost_links.php deleted file mode 100644 index 97bb17293f..0000000000 --- a/timesheet/fix_lost_links.php +++ /dev/null @@ -1,42 +0,0 @@ - - * @package timesheet - * @copyright (c) 2005 by Ralf Becker - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - * @version $Id$ - */ - -$GLOBALS['egw_info'] = array( - 'flags' => array( - 'currentapp' => 'admin', -)); -include('../header.inc.php'); - -require_once(EGW_INCLUDE_ROOT.'/timesheet/inc/class.botimesheet.inc.php'); - -$bots = new botimesheet(); -$so_sql = new so_sql('timesheet',$bots->table_name); - -// search timesheet which have a project-field identical to an exiting PM project, but no link to it -$rows = $so_sql->search(false,'ts_id,ts_project,ts_title','','pm_id,link_id','',false,'AND',false,array('link_id IS NULL'), - ' JOIN egw_pm_projects ON ts_project='.$so_sql->db->concat('pm_number',"': '",'pm_title'). - " LEFT JOIN egw_links ON (link_app1='timesheet' AND link_id1=ts_id AND link_app2='projectmanager' AND link_id2=pm_id". - " OR link_app1='projectmanager' AND link_id1=pm_id AND link_app2='timesheet' and link_id2=ts_id)"); - -echo "

Fixing links to ProjectManager lost by the bug in the links-class

\n"; - -if ($rows) -{ - foreach($rows as $row) - { - if ($bots->link->link('timesheet',$row['ts_id'],'projectmanager',$row['pm_id'])) - { - echo "

relinked timesheet '$row[ts_title]' with project '$row[ts_project]'

\n"; - } - } -} -echo "

".(is_array($rows) ? count($rows) : 0)." missing links found.

\n"; \ No newline at end of file