Author: jleroux Date: Tue Jan 16 16:59:57 2018 New Revision: 1821268 URL: http://svn.apache.org/viewvc?rev=1821268&view=rev Log: Fixed: Replace Asm select plugin with Select2. (OFBIZ-10113)
I found this error in trunk demo error.log 2018-01-16 15:45:48,684 |jsse-nio-8443-exec-3 |FreeMarkerWorker |E| null freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> userLogin [in template "component://common-theme/template/includes/SetMultipleSelectJs.ftl" at line 32, column 20] ---- FTL stack trace ("~" means nesting-related): - Failed at: ${userLogin.lastLocale!"en"} [in template "component://common-theme/template/includes/SetMultipleSelectJs.ftl" at line 32, column 18] ---- This fixes it Modified: ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetMultipleSelectJs.ftl Modified: ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetMultipleSelectJs.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetMultipleSelectJs.ftl?rev=1821268&r1=1821267&r2=1821268&view=diff ============================================================================== --- ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetMultipleSelectJs.ftl (original) +++ ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetMultipleSelectJs.ftl Tue Jan 16 16:59:57 2018 @@ -29,7 +29,7 @@ under the License. multiple.select2({ tags: true, multiple: true, - lang: '${userLogin.lastLocale!"en"}' + lang: <#if userLogin??>'${userLogin.lastLocale!"en"}'<#else>"en"</#if> }); <#if asm_relatedField??> <#-- can be used without related field -->