related to bug 34900: removed some clutter for boolean value
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 13 Jan 2017 14:00:31 +0100
changeset 31480 1a343ca1fb00
parent 31479 ec94c6362d99
child 31481 fdb4752766d1
related to bug 34900: removed some clutter for boolean value
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");
     }