Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029638Openbravo ERPA. Platformpublic2015-04-20 17:282015-05-26 09:35
caristu 
NaroaIriarte 
highmajorhave not tried
closedfixed 
5
 
3.0PR15Q3 
alostale
Core
No
0029638: Google Calendar widget is not working
The Google Calendar widget is not working, it appears blank after adding it into the workspace. The following error appears in the console: Refused to display 'https://www.google.com/calendar/embed?src=account' [^] in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
1) Add the Google Calendar into the workspace
2) Notice that the widget content appears blank

No tags attached.
has duplicate defect 0030582 closed platform Google docs & calendar widgets are not working by default 
related to design defect 0030001 acknowledged Triage Platform Base The google calendar widget should be handled by another class which extends from the class "ob-url-widget". 
Issue History
2015-04-20 17:28caristuNew Issue
2015-04-20 17:28caristuAssigned To => platform
2015-04-20 17:28caristuModules => Core
2015-04-20 17:28caristuRegression date => 2015-05-22
2015-04-20 17:28caristuTriggers an Emergency Pack => No
2015-04-20 17:28caristuIssue Monitored: networkb
2015-04-21 15:30alostaleStatusnew => acknowledged
2015-04-27 13:16jonalegriaesarteResolution time => 1432245600
2015-04-27 13:16jonalegriaesarteRegression date2015-05-22 =>
2015-05-14 12:15alostaleStatusacknowledged => scheduled
2015-05-14 12:15alostaleAssigned Toplatform => inigosanchez
2015-05-20 16:15alostaleAssigned Toinigosanchez => NaroaIriarte
2015-05-21 11:04NaroaIriarteNote Added: 0077617
2015-05-21 11:04NaroaIriarteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8603#r8603
2015-05-22 10:39NaroaIriarteReview Assigned To => alostale
2015-05-22 11:23NaroaIriarteIssue Monitored: alostale
2015-05-22 11:23hgbotCheckin
2015-05-22 11:23hgbotNote Added: 0077657
2015-05-22 11:23hgbotStatusscheduled => resolved
2015-05-22 11:23hgbotResolutionopen => fixed
2015-05-22 11:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2703e8a7e32acf90f9cb382db1fe09f311b3757d [^]
2015-05-25 18:01hudsonbotCheckin
2015-05-25 18:01hudsonbotNote Added: 0077718
2015-05-26 09:27alostaleRelationship addedrelated to 0030001
2015-05-26 09:35alostaleNote Added: 0077731
2015-05-26 09:35alostaleStatusresolved => closed
2015-05-26 09:35alostaleFixed in Version => 3.0PR15Q3
2015-08-26 10:51caristuRelationship addedhas duplicate 0030582

Notes
(0077617)
NaroaIriarte   
2015-05-21 11:04   
It is possible to load the google calendar:

1) As system admin, go to the user window and set the "email" field. Fill it with your google account.
2) Open your google account in the browser.
3) Add the Google Calendar into the workspace.
4) It is not shown, it appears blank.
5) Refresh the workspace.
6) Google calendar is loaded.
 
(0077657)
hgbot   
2015-05-22 11:23   
Repository: erp/devel/pi
Changeset: 2703e8a7e32acf90f9cb382db1fe09f311b3757d
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Fri May 22 11:18:49 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2703e8a7e32acf90f9cb382db1fe09f311b3757d [^]

Fixed issue 29638: Google Calendar widget is not working properly.

In the workspace, adding a google calendar windget was not working properly. It
appeared blank.

It is necessary to set the field "email" of the user, in the user window, for being able
to show the asociated calendar in the widget. It is also necessary to be logged in the same
google account in the same browser for being able to display the calendar.

The problem was that it was not correctly displayed at first and it was necessary to refresh
the workspace for making the Google Calendar work properly.
This was because the email of the user was not correctly set.

The "evaluateContents" function has been overwritten in then "ob-url-widget.js" for granting
its correct behavior.

---
M modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-url-widget.js
---
(0077718)
hudsonbot   
2015-05-25 18:01   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/8cc85f698754 [^]
Maturity status: Test
(0077731)
alostale   
2015-05-26 09:35   
Code reviewed

Tested
-Having email correctly set in the logged user it works properly
-If email is not configured, blank widget still appears, this should be fixed by refactoring the widget as reported in 0030001