Author: hansbak
Date: Tue Jan 17 11:10:10 2012
New Revision: 1232385
URL:
http://svn.apache.org/viewvc?rev=1232385&view=revLog:
add getOptionName method to productConfig wrapper
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java?rev=1232385&r1=1232384&r2=1232385&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java Tue Jan 17 11:10:10 2012
@@ -664,6 +664,15 @@ public class ProductConfigWrapper implem
}
}
+ public String getOptionName() {
+ return (configOption.getString("configOptionName") != null? configOption.getString("configOptionName"): "no option name");
+ }
+
+ public String getOptionName(Locale locale) {
+
+ return (configOption.getString("configOptionName") != null? (String) configOption.get("configOptionName", locale): "no option name");
+ }
+
public String getDescription() {
return (configOption.getString("description") != null? configOption.getString("description"): "no description");
}