details:   https://code.openbravo.com/erp/devel/pi/rev/a3f3fdcb4970
changeset: 18080:a3f3fdcb4970
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Fri Sep 28 15:28:44 2012 +0200
summary:   Related to issue 21741: Backout of changeset 18066

The changed that only fixed this issue partially has been backed out. The 
complete fix will be included in MP17.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
          |  3 +--
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
 |  5 ++---
 2 files changed, 3 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 0bdd29a50fcc -r a3f3fdcb4970 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Fri Sep 28 12:59:32 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
       Fri Sep 28 15:28:44 2012 +0200
@@ -262,8 +262,7 @@
         if (processClass) {
           this.selectedState = this.activeView && this.activeView.viewGrid && 
this.activeView.viewGrid.getSelectedState();
           this.runningProcess = processClass.create(isc.addProperties({}, 
params, {
-            parentWindow: this,
-            sourceView: this.activeView
+            parentWindow: this
           }));
 
           this.openPopupInTab(this.runningProcess, params.windowTitle, 
(this.runningProcess.popupWidth ? this.runningProcess.popupWidth : '90%'), 
(this.runningProcess.popupHeight ? this.runningProcess.popupHeight : '90%'), 
(this.runningProcess.showMinimizeButton ? 
this.runningProcess.showMinimizeButton : false), 
(this.runningProcess.showMaximizeButton ? 
this.runningProcess.showMaximizeButton : false), true, true);
diff -r 0bdd29a50fcc -r a3f3fdcb4970 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
      Fri Sep 28 12:59:32 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
      Fri Sep 28 15:28:44 2012 +0200
@@ -202,8 +202,6 @@
       window.view.messageBar.setMessage(message.severity, message.text);
     }
 
-    this.sourceView.setAsActiveView();
-
     if (refresh) {
       window.refresh();
     }
@@ -319,7 +317,8 @@
   doProcess: function (btnValue) {
     var i, tmp, view = this,
         grid = view.viewGrid,
-        allProperties = this.sourceView.getContextInfo(false, true, false, 
true) || {},
+        activeView = view.parentWindow && view.parentWindow.activeView,
+        allProperties = activeView.getContextInfo(false, true, false, true) || 
{},
         selection = grid.getSelectedRecords() || [],
         len = selection.length,
         allRows = grid.data.allRows || grid.data;

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to