OFBiz
  1. OFBiz
  2. OFBIZ-2942

createPartyContactMechPurpose service doesn't allow fromDate

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Release Branch 4.0, Release Branch 09.04, Trunk
    • Fix Version/s: 14.12.01, 13.07.01
    • Component/s: party
    • Labels:
      None

      Description

      createPartyContactMechPurpose service doesn't allow the fromDate to be specified; in the java code, it is hard-coded to always call UtilDateTime.nowTimestamp().

      I've got an importer, that does a lot of things. I save the current time at the start of the script, then use that same time in all parts, so that all the date filter is consistent. The above bug keeps me from having consistent data.

        Activity

        Hide
        Deepak Dixit added a comment -

        Added code to take fromDate of PartyContactMechPurpose from user. If user provides fromDate then that will be used else nowTimeStamp will be used as fromDate.

        Show
        Deepak Dixit added a comment - Added code to take fromDate of PartyContactMechPurpose from user. If user provides fromDate then that will be used else nowTimeStamp will be used as fromDate.
        Hide
        Anil K Patel added a comment -

        Thanks Adam Heath for reporting the issue. The patch by Deepak Dixit on Jira ticket fixes the issue. Now fromDate is also an IN parameter, if found null, then default to now timestamp.
        Fix applied to trunk and 13.07 branch.

        Show
        Anil K Patel added a comment - Thanks Adam Heath for reporting the issue. The patch by Deepak Dixit on Jira ticket fixes the issue. Now fromDate is also an IN parameter, if found null, then default to now timestamp. Fix applied to trunk and 13.07 branch.

          People

          • Assignee:
            Anil K Patel
            Reporter:
            Adam Heath
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development