From 82451091978c0c3d6fd248f56363953f168a3f99 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 10 Mar 2013 17:45:48 +0100 Subject: [PATCH] Do not import tickets if import_otrs_endpoint is not configured. --- lib/import/otrs.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/import/otrs.rb b/lib/import/otrs.rb index 4fd39dc33..41368c49d 100644 --- a/lib/import/otrs.rb +++ b/lib/import/otrs.rb @@ -124,6 +124,7 @@ module Import::OTRS def self.diff_loop return if !Setting.get('import_mode') + return if Setting.get('import_otrs_endpoint') == 'http://otrs_host/otrs' while true self.diff sleep 30