Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1092

Entering invalid characters in some date fields results in an error

    XMLWordPrintable

Details

    • Standard Bug Write-Up Format
    • ERM Sprint 96
    • Bienenvolk

    Description

      Overview:
      When setting Coverage or Custom Coverage dates for PCIs or Entitlements, Entering invalid characters in date field results in an error

      Affected screens include:
      /erm/agreements/<agreement uuid>/line/<entitlement uuid>/edit
      /erm/agreements/<agreement uuid>/edit
      /erm/eresources/<pci UUID>/edit

      Steps to Reproduce:

      1. Create an agreement and add a journal as an agreement line
      2. Edit agreement and go to add custom coverage to the agreement line
      3. Enter a hyphen or some other invalid character in the Start date field

      Expected Results:
      Other date fields currently do not validate until they are submitted. This behaviour is fine
      Alternatively it could simply be made impossible to enter invalid characters

      Actual Results:
      Error displayed as soon as invalid character entered (user does not have to click Save and Close to generate error)

      Please refresh the page.
      The following occurred resulting in the current page becoming unstable.
      ERROR:Cannot read property 'substring' of null
      
          in V
          in injectIntl(V)
          in ForwardRef(FormField(injectIntl(V)))
          in ForwardRef
          in div
          in p
          in div
          in d
          in div
          in i
          in ForwardRef
          in div
          in div
          in i
          in i
          in div
          in div
          in r
          in WithKiwtFieldArray(r)
          in h
          in div
          in section
          in i
          in c
          in P
          in div
          in i
          in i
          in Wrappedi(withAccordionStatus)
          in i
          in div
          in div
          in section
          in c
          in Unknown
          in WithPaneset(Component)
          in ForwardRef
          in div
          in M
          in i
          in WithPaneset(i)
          in ForwardRef
          in v
          in v
          in i
          in withRouter(i)
          in Unknown
          in o
          in WithSuppressFromDiscovery(o)
          in i
          in WithConnect(i)
          in Connect(WithConnect(i))
          in s
          in WithStripes(s)
          in t
          in j
          in t
          in div
          in Suspense
          in div
          in c
          in t
          in h
          in i
          in WithStripes(i)
          in i
          in div
          in o
          in t
          in t
          in main
          in Ro
          in i
          in div
          in nr
          in c
          in WithModules(c)
          in withRouter(WithModules(c))
          in t
          in i
          in t
          in t
          in HotKeys-t
          in t
          in h
          in i
          in WithStripes(i)
          in i
          in injectIntl(i)
          in i
          in IntlProvider
          in t
          in i
          in c
          in WithModules(c)
          in Connect(WithModules(c))
          in i
      

      Additional Information:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases