# HG changeset patch
# User Mark <markmm82@gmail.com>
# Date 1539744317 14400
#      Tue Oct 16 22:45:17 2018 -0400
# Node ID c6f1675a61bfd463cc96bcd83b240da6aeb1aea6
# Parent  2e0dfe691859df46aa1549f9f285d3cb1a0da16f
Fixes issue 39426:Duplicated call to the reservations datasource when refreshing
the Resources Reservation widget.

Removed unnecessary refreshCalendar in the drawComponents event because the calendar
is initialized with the datasource results the first time it is loaded and it is not
needed to refresh the calendar.

diff --git a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-multicalendar.js b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-multicalendar.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-multicalendar.js
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-multicalendar.js
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2013 Openbravo SLU
+ * All portions are Copyright (C) 2013-2018 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -704,7 +704,6 @@
     this.addMembers([isc.VLayout.create({
       members: [this.calendar]
     })]);
-    this.refreshCalendar();
   },
 
   calculateLanes: function () {
