details:   https://code.openbravo.com/erp/devel/pi/rev/1a343ca1fb00
changeset: 31098:1a343ca1fb00
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Fri Jan 13 14:00:31 2017 +0100
summary:   related to bug 34900: removed some clutter for boolean value

diffstat:

 src/org/openbravo/erpCommon/utility/reporting/TemplateInfo.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ec94c6362d99 -r 1a343ca1fb00 
src/org/openbravo/erpCommon/utility/reporting/TemplateInfo.java
--- a/src/org/openbravo/erpCommon/utility/reporting/TemplateInfo.java   Thu Jan 
12 17:07:55 2017 +0100
+++ b/src/org/openbravo/erpCommon/utility/reporting/TemplateInfo.java   Fri Jan 
13 14:00:31 2017 +0100
@@ -9,7 +9,7 @@
  * either express or implied. See the License for the specific language
  * governing rights and limitations 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-2014 Openbravo SLU All Rights Reserved.
+ * portions are Copyright (C) 2001-2017 Openbravo SLU All Rights Reserved.
  * Contributor(s): ______________________________________.
  * ***********************************************************************
  */
@@ -49,7 +49,7 @@
       _Body = emailDefinitionData.getField("body");
       _Language = emailDefinitionData.getField("ad_language");
       if (emailDefinitionData.getField("isdefault") != null) {
-        _IsDefault = ("Y").equals(emailDefinitionData.getField("isdefault")) ? 
true : false;
+        _IsDefault = "Y".equals(emailDefinitionData.getField("isdefault"));
       }
       _Id = emailDefinitionData.getField("id");
     }

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to