Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1420

Incorrect Date Comparison in Email Filtering

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • ManifoldCF 2.7
    • ManifoldCF 2.8
    • Email connector
    • None
    • Patch

    Description

      Email date filtering doesn't work correctly.

            else if (findParameterName.equals(EmailConfig.EMAIL_START_DATE)) {
              comparisonTerm = ComparisonTerm.LT;
            } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
              comparisonTerm = ComparisonTerm.GT;
            }
      

      It must be as follow:

            else if (findParameterName.equals(EmailConfig.EMAIL_START_DATE)) {
              comparisonTerm = ComparisonTerm.GT;
            } else if (findParameterName.equals(EmailConfig.EMAIL_END_DATE)) {
              comparisonTerm = ComparisonTerm.LT;
            }
      

      Reference: ComparisonTerm

      ComparisonTerm.GT : The greater than operator.
      ComparisonTerm.LT : The less than operator.
      

      Attachments

        1. CONNECTORS-1420.patch
          1 kB
          Cihad Guzel

        Activity

          People

            kwright@metacarta.com Karl Wright
            cguzel Cihad Guzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: