Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5773

<@htmlTemplate.renderDateTimeField> icon buttons disappear on some pages after refresh

    Details

      Description

      When some pages that use <@htmlTemplate.renderDateTimeField> are refreshed the icons associated with those fields start to disappear.

      For example, the ShipBeforeDate fields of the ship groups at ordermgr/control/editOrderItems disappear one at a time for each refresh. Another example of this happening is at ordermgr/control/EditQuote for the QuoteIssueDate field but oddly the ValidFromDate and ValidThruDate don't exhibit the behavior even though they are the same type of field. Also, the statusId field of the ordermgr/control/EditQuote also gets unset after the first refresh which may be related.

      I'm not sure if this behavior is isolated to the <@htmlTemplate.renderDateTimeField> or also occuring for form-widget <date-time type="timestamp"/> fields as well.

      1. OFBIZ-5773.patch
        2 kB
        akashjain2010
      2. OFBIZ-5773-branch-13.07.patch
        2 kB
        akashjain2010

        Issue Links

          Activity

          Hide
          akash.jain Akash Jain added a comment - - edited

          Following are the steps to regenerate this issue, it is generated on Mozilla and working fine for Google Chrome:

          1. Go to order detail page of any order make sure Ship After Date should be entered any value on Shipment Information block.
          2. Now refresh the page using F5 key, calender icon of Ship After Date will be removed.

          Attached patch to fix this issue.

          Show
          akash.jain Akash Jain added a comment - - edited Following are the steps to regenerate this issue, it is generated on Mozilla and working fine for Google Chrome: Go to order detail page of any order make sure Ship After Date should be entered any value on Shipment Information block. Now refresh the page using F5 key, calender icon of Ship After Date will be removed. Attached patch to fix this issue.
          Hide
          akash.jain Akash Jain added a comment - - edited

          This issue will fix on 13.07 branch as well, attached for the same.

          Show
          akash.jain Akash Jain added a comment - - edited This issue will fix on 13.07 branch as well, attached for the same.
          Hide
          toashishvijay Ashish Vijaywargiya added a comment -

          Thanks Christian for reporting the issue, Thanks Akash for providing the patch for the same. Attache patch files has been committed in trunk at r1626419 & in RB13.07 at r1626420.

          Show
          toashishvijay Ashish Vijaywargiya added a comment - Thanks Christian for reporting the issue, Thanks Akash for providing the patch for the same. Attache patch files has been committed in trunk at r1626419 & in RB13.07 at r1626420.
          Hide
          akash.jain Akash Jain added a comment - - edited

          Thanks to Christian and Ashish!

          Show
          akash.jain Akash Jain added a comment - - edited Thanks to Christian and Ashish!
          Hide
          gareth.carter Gareth Carter added a comment -

          Hi guys

          I have just had a look at this issue and I don't believe the patch provided does not fix the issue. Google chrome works fine but in Firefox it seems to set initDate to browsers locale even though the attribute value is ISO:

          <input name="shipAfterDate_i18n" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="2014-11-07 00:00:00.000" size="25" maxlength="30" id="shipAfterDate_00001_i18n" type="text">

          In Firefox, initDate is 07/11/2014 00:00:00 so either Firefox or jQuery is converting to local format (I think firefox)

          I have created another issue relating to this one https://issues.apache.org/jira/browse/OFBIZ-5850, shall I provide the patch in that issue or this?

          Show
          gareth.carter Gareth Carter added a comment - Hi guys I have just had a look at this issue and I don't believe the patch provided does not fix the issue. Google chrome works fine but in Firefox it seems to set initDate to browsers locale even though the attribute value is ISO: <input name="shipAfterDate_i18n" title="Format: yyyy-MM-dd HH:mm:ss.SSS" value="2014-11-07 00:00:00.000" size="25" maxlength="30" id="shipAfterDate_00001_i18n" type="text"> In Firefox, initDate is 07/11/2014 00:00:00 so either Firefox or jQuery is converting to local format (I think firefox) I have created another issue relating to this one https://issues.apache.org/jira/browse/OFBIZ-5850 , shall I provide the patch in that issue or this?
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Hi Gareth,

          Please use the new OFBIZ-5850 Jira issue, thanks

          Show
          jacques.le.roux Jacques Le Roux added a comment - Hi Gareth, Please use the new OFBIZ-5850 Jira issue, thanks
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          This has been definitely fixed by OFBIZ-5850

          Show
          jacques.le.roux Jacques Le Roux added a comment - This has been definitely fixed by OFBIZ-5850

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              ofbizzer Christian Carlow
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development