Просмотр исходного кода

Fixed issue #1406 - Exchange integration wizard fails if server does not support autodiscovery.

Thorsten Eckel 7 лет назад
Родитель
Сommit
cb3506da03
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/controllers/integration/exchange_controller.rb

+ 1 - 1
app/controllers/integration/exchange_controller.rb

@@ -13,7 +13,7 @@ class Integration::ExchangeController < ApplicationController
       )
 
       {
-        endpoint: client.autodiscover.ews_url,
+        endpoint: client.try(:autodiscover).try(:ews_url),
       }
     end
   end