Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-11610

Travel Account Maintenance document stays in initiated status after being submitted

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Attachments

        Activity

        Hide
        shahess Shannon Hess added a comment - - edited

        I started looking into this issue because Adam Campbell was having issues verifying a JIRA I completed, KULRICE-11405. Since the docs aren't getting submitted, the files are remaining editable.

        It looks like the docs staying in initiated status is due to the changes that were made for KULRICE-11543 . For that JIRA, the createDate field was made unconditional read only with a default value of the current date.

        from TravelAccountMaintenance.xml

        <bean parent="Uif-InputField" p:propertyName="createDate" p:readOnly="true" p:defaultValue="#{T(org.joda.time.DateTime).now().toDate()}"/>
        

        If I remove the read only property, everything works as expected and createDate is a java.sql.Date in an accepted format:

        2014-01-10
        

        When read only is set to true, createDate field is a java.util.Date field that looks like the following. It causes an error in the logs due to it not being an accepted format.

        Fri Jan 10 04:49:26 CST 2014
        

        You can also skip logging of the error while debugging and the document can be successfully saved as well. I think the validation could be skipped for this field since it is a read only field, but so far I have no success in skipping the validation via code changes.

        Show
        shahess Shannon Hess added a comment - - edited I started looking into this issue because Adam Campbell was having issues verifying a JIRA I completed, KULRICE-11405 . Since the docs aren't getting submitted, the files are remaining editable. It looks like the docs staying in initiated status is due to the changes that were made for KULRICE-11543 . For that JIRA, the createDate field was made unconditional read only with a default value of the current date. from TravelAccountMaintenance.xml <bean parent= "Uif-InputField" p:propertyName= "createDate" p:readOnly= " true " p:defaultValue= "#{T(org.joda.time.DateTime).now().toDate()}" /> If I remove the read only property, everything works as expected and createDate is a java.sql.Date in an accepted format: 2014-01-10 When read only is set to true, createDate field is a java.util.Date field that looks like the following. It causes an error in the logs due to it not being an accepted format. Fri Jan 10 04:49:26 CST 2014 You can also skip logging of the error while debugging and the document can be successfully saved as well. I think the validation could be skipped for this field since it is a read only field, but so far I have no success in skipping the validation via code changes.

          People

          • Assignee:
            cniesen Claus Niesen
            Reporter:
            shahess Shannon Hess
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: