Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.2 CE GA3 , 6.2.3 CE GA4, 6.2.10 EE GA1, 7.0.1 CE GA2
-
6.2.x
-
Committed
-
1
Description
When nullable="true" is present, the component does not display the date.
This issue is similar to LPS-41621.
Steps to Reproduce on Master:
- Navigate to or create a .jsp file that includes the taglib "liferay-ui:input-date". In this case, I used "article_search.jsp" located at portal/modules/apps/knowledge-base/knowledge-base-web/src/main/resources/META_INF/resources/admin/article_search.jsp
- Locate a liferay-ui:input-date in the file and add the attribute nullable="<%= true %>"
- Save the file and run gradle clean deploy on the knowledge-base-web directory
- Once it has completed building, navigate to Knowledge Base under Content in the portal
- Click on the Search icon in the upper right side
- Under the Date section, change the value from Anytime to Between
- Observe the date in the input field where you added the nullable attribute
Steps to Reproduce on ee-6.2.x:
I made and uploaded a test portlet for an easier reproduction.
- Deploy the attached portlet
- Put InputDate portlet to your default page
- Observe the date in the input field where you added the nullable attribute
Expected Results:
The input field should display the current date on load.
Attachments
Issue Links
- causes
-
LPS-67304 Editing an article with a date field, the disabled check box does not appear
- Closed
-
LPS-67315 Disabled checkbox in DDM date field does not disable date input
- Closed
-
LPS-67316 A required DDM date field has an check box to be disabled
- Closed
-
LPS-73338 "liferay-ui:input-date" taglib can not be initialized without "disable" checkbox
- Closed
- relates
-
LPS-67708 Saving an article with a nulled date populates it with todays date
- Closed
-
LPE-15129 The date in taglib <input-date> is not display when nullable is enabled.
-
- Closed
-