Author: jleroux
Date: Mon May 27 16:28:32 2019
New Revision: 1860141
URL:
http://svn.apache.org/viewvc?rev=1860141&view=revLog:
Fixed: Edit WebSite Path Alias is not working
(OFBIZ-11022)
Steps to regenerate:
Login into content
Select any website(Preferably CmsSite as it has pathAlias)
Click on pathAlias tab
Select any pathAlias to edit
See edit option is not available on screen, Create option is available which
is creating new pathAlias instead of edit.
Thanks: Pawan Verma
Modified:
ofbiz/ofbiz-framework/trunk/applications/content/widget/website/WebSiteForms.xml
Modified: ofbiz/ofbiz-framework/trunk/applications/content/widget/website/WebSiteForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/content/widget/website/WebSiteForms.xml?rev=1860141&r1=1860140&r2=1860141&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/content/widget/website/WebSiteForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/content/widget/website/WebSiteForms.xml Mon May 27 16:28:32 2019
@@ -93,7 +93,7 @@ under the License.
</service>
</actions>
<field name="pathAlias" sort-field="true" widget-style="buttontext">
- <hyperlink description="${pathAlias}" target="EditWebSitePathAlias?webSiteId=${webSiteId}&pathAlias=${pathAlias}"></hyperlink>
+ <hyperlink description="${pathAlias}" target="EditWebSitePathAlias?webSiteId=${webSiteId}&pathAlias=${pathAlias}&fromDate=${fromDate}"></hyperlink>
</field>
<field name="aliasTo" sort-field="true"><display/></field>
<field name="contentId" sort-field="true">
@@ -127,7 +127,8 @@ under the License.
<field name="contentId"><lookup target-form-name="LookupContent"/></field>
<field name="pathAlias" use-when="webSitePathAlias!=null"><display/></field>
<field name="pathAlias" use-when="webSitePathAlias==null" required-field="true"><text/></field>
- <field name="fromDate" required-field="true"><date-time default-value="${nowTimestamp}"/></field>
+ <field name="fromDate" use-when="webSitePathAlias!=null"><display/></field>
+ <field name="fromDate" use-when="webSitePathAlias==null" required-field="true"><date-time default-value="${nowTimestamp}"/></field>
<field name="submitButton" use-when="webSitePathAlias!=null" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
<field name="submitButton" use-when="webSitePathAlias==null" title="${uiLabelMap.CommonCreate}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>