details:   https://code.openbravo.com/erp/devel/pi/rev/27839f3cbb27
changeset: 33200:27839f3cbb27
user:      Javier Armendáriz <javier.armendariz <at> openbravo.com>
date:      Thu Jan 11 10:20:02 2018 +0100
summary:   Fixed bug 37170: Remove unneeded toolbar buttons in SQL Query window.

This removes some navigation buttons in SQL Query Window that currently has no 
functionality.

diffstat:

 src/org/openbravo/erpCommon/utility/ToolBar.java |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 436eb0fb4c04 -r 27839f3cbb27 
src/org/openbravo/erpCommon/utility/ToolBar.java
--- a/src/org/openbravo/erpCommon/utility/ToolBar.java  Fri Jan 19 09:25:37 
2018 +0100
+++ b/src/org/openbravo/erpCommon/utility/ToolBar.java  Thu Jan 11 10:20:02 
2018 +0100
@@ -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) 2001-2012 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2018 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -1016,6 +1016,11 @@
     removeElement("ORDERBY_FILTERED");
     removeElement("FIRST");
     removeElement("LAST");
+    removeElement("FIRST_RELATION");
+    removeElement("LAST_RELATION");
+    removeElement("PREVIOUS");
+    removeElement("NEXT");
+
     if (!hasPrevious)
       removeElement("PREVIOUS_RELATION");
     else
@@ -1032,6 +1037,7 @@
     removeElement("AUDIT_SHOW_RELATION_DISABLED");
     removeElement("AUDIT_SHOW_RELATION_ENABLED");
     removeElement("AUDIT_TRAIL");
+    removeElement("RELATED_INFO");
   }
 
   private void removeAllTests() {
@@ -1145,7 +1151,8 @@
       toolbar.append(transformElementsToString(buttons.get("ATTACHMENT"), 
lastType, false));
       toolbar.append(transformElementsToString(buttons.get("EXCEL"), lastType, 
false));
       // if some module still runs this code path -> Log error with StackTrace
-      if (buttons.containsKey("GRIDEXCEL") || buttons.containsKey("GRIDCSV") 
|| buttons.containsKey("GRIDPDF")) {
+      if (buttons.containsKey("GRIDEXCEL") || buttons.containsKey("GRIDCSV")
+          || buttons.containsKey("GRIDPDF")) {
         log.error("Old 2.50 ExportGrid functionality does no longer exist.", 
new Throwable());
       }
       toolbar.append(transformElementsToString(buttons.get("PRINT"), lastType, 
false));

------------------------------------------------------------------------------
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