Author: jleroux
Date: Tue May 4 13:37:05 2010
New Revision: 940852
URL:
http://svn.apache.org/viewvc?rev=940852&view=revLog:
"Applied fix from trunk for revision: 940849"
------------------------------------------------------------------------
r940849 | jleroux | 2010-05-04 15:32:21 +0200 (mar. 04 mai 2010) | 1 ligne
Fix a non visible NPE
------------------------------------------------------------------------
Modified:
ofbiz/branches/release10.04/ (props changed)
ofbiz/branches/release10.04/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy
Propchange: ofbiz/branches/release10.04/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Tue May 4 13:37:05 2010
@@ -1,3 +1,3 @@
/ofbiz/branches/addbirt:831210-885099,885686-886087
/ofbiz/branches/multitenant20100310:921280-927264
-/ofbiz/trunk:939988,939990,939999,940025,940234,940248,940309,940401,940410,940425,940779,940815
+/ofbiz/trunk:939988,939990,939999,940025,940234,940248,940309,940401,940410,940425,940779,940815,940849
Modified: ofbiz/branches/release10.04/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy?rev=940852&r1=940851&r2=940852&view=diff==============================================================================
--- ofbiz/branches/release10.04/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy (original)
+++ ofbiz/branches/release10.04/framework/common/webcommon/WEB-INF/actions/includes/FindAutocompleteOptions.groovy Tue May 4 13:37:05 2010
@@ -31,7 +31,7 @@ entityName = context.entityName;
searchFields = context.searchFields;
displayFields = context.displayFields ?: searchFields;
searchValueFieldName = parameters.searchValueField;
-fieldValue = parameters.get(searchValueFieldName);
+if (searchValueFieldName) fieldValue = parameters.get(searchValueFieldName);
searchType = context.searchType;
if (searchFields && fieldValue) {