details:   https://code.openbravo.com/erp/devel/pi/rev/7332b0c1a8cd
changeset: 34165:7332b0c1a8cd
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Mon Jun 04 19:32:10 2018 +0200
summary:   fixes bug 38593: Wrong cell style calculation when hiding the 
calendar lanes

  This was an issue in Smartclient, fixed here[1]. When hidding the calendar 
lanes, the chosen date was not being retrieved properly, avoiding the proper 
calculation of the cell styles.

[1] 
https://code.openbravo.com/private/com.isomorphic.smartclient/diff/073b213e9dc4/SmartClient/smartclientSDK/source/client/widgets/CalendarView.js#l1.339

diffstat:

 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 270c8e805fb3 -r 7332b0c1a8cd 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
--- 
a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
    Mon Jun 04 12:30:03 2018 +0200
+++ 
b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
    Mon Jun 04 19:32:10 2018 +0200
@@ -13303,7 +13303,7 @@
 
_9.setProperty(_14,"");this.setShowHeader(true);if(_1.canReorderLanes)this.canReorderFields=_1.canReorderLanes;if(_1.minLaneWidth!=null)this.minFieldWidth=_1.minLaneWidth;this.data=_9}else{var
 
_22=_1.chosenDate;_2[0].frozen=true;_2.add({name:"day1",align:"center",date:_1.chosenDate});if(this.isWeekView()){var
 _23=8;for(var i=2;i<_23;i++){_2.add({name:"day"+i,align:"center"})}
 this.setShowHeader(true);if(!_1.showWeekends){var 
_24=this.showLabelColumn&&this.labelColumnPosition=="left"?1:0;var 
_25=Date.getWeekendDays();for(var i=_24;i<_2.length;i++){var 
_26=((i-_24)+_1.firstDayOfWeek)%7;if(_25.contains(_26)){_2[i].showIf="return 
false;"}}}
 _22=this.chosenWeekStart}else{this.setShowHeader(false)}
-this.data=isc.DaySchedule.$126v(_1,this,this.scaffoldingStartDate)}
+this.data=isc.DaySchedule.$126v(_1,this,_22)}
 if(this.showLabelColumn&&this.labelColumnPosition=="right"){_2.add(_3)}
 this.setFields(_2)},isc.A.getDateFromPoint=function 
isc_DaySchedule_getDateFromPoint(_1,_2,_3,_4){var _5=this.calendar;if(_4){}
 if(_1==null&&_2==null){_2=this.body.getOffsetY();_1=this.body.getOffsetX()}

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to