Author: jleroux
Date: Sun Apr 30 09:54:58 2017
New Revision: 1793254
URL:
http://svn.apache.org/viewvc?rev=1793254&view=revLog:
Improved: When searched from FindGeneric page it looses entityName from the url
(OFBIZ-9341)
Steps to generate:
1. Go to webtools (
https://localhost:8443/webtools/control/main)
2. Click on "Entity Engine" (
https://localhost:8443/webtools/control/entitymaint)
3. Click on any entity to view (
https://localhost:8443/webtools/control/FindGeneric?entityName=AccommodationClass)
4. Click on "search" button (
https://localhost:8443/webtools/control/FindGeneric)
When the search is hit, it looses the entityName from the url as it used to
happen in previous releases and according to the pattern on other search pages.
Thanks: Aditya Sharma
Modified:
ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/entity/FindGeneric.groovy
Modified: ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/entity/FindGeneric.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/entity/FindGeneric.groovy?rev=1793254&r1=1793253&r2=1793254&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/entity/FindGeneric.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/framework/webtools/groovyScripts/entity/FindGeneric.groovy Sun Apr 30 09:54:58 2017
@@ -44,11 +44,10 @@ if (modelEntity) {
ModelReader entityModelReader = delegator.getModelReader()
//create the search form with auto-fields-entity
String dynamicAutoEntityFieldSearchForm = '<?xml version="1.0" encoding="UTF-8"?><forms xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="
http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">' +
- '<form name="FindGeneric" type="single" target="FindGeneric">' +
+ '<form name="FindGeneric" type="single" target="FindGeneric?entityName='+ entityName +'">' +
'<auto-fields-entity entity-name="' + entityName + '" default-field-type="find"/>' +
'<field name="noConditionFind"><hidden value="Y"/></field>' +
'<field name="searchOptions_collapsed" ><hidden value="true"/></field>' +
- '<field name="entityName"><hidden value="' + entityName + '"/></field>' +
'<field name="searchButton" title="' + UtilProperties.getMessage("CommonUiLabels", "FormFieldTitle_searchButton", locale) + '"><submit/></field>'
//call modelEntity to complete information on the field type