Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6136

Cannot override an invoker specified with "changePath" with one of a different form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: Framework, IoC System
    • Labels:
      None

      Description

      If an invoker is specified using a "changePath" to directly update a model value, it cannot be overridden with an invoker of a different form.

      Default config:

              invokers: {
                  toOverride: {
                      changePath: "value",
                      value: "{arguments}.0"
                  }
              }
      

      overrideConfig:

                      toOverride: {
                          funcName: "fluid.tests.overrideInvokerChangePath.overridden",
                          args: ["{that}"]
                      }
      

      Additionally if we try to the work around of providing null for the "changePath" and "value" properties, an error is thrown. "Cannot read property 'segs' of null"

        Attachments

          Activity

            People

            Assignee:
            antranig Antranig Basman
            Reporter:
            jobara Justin Obara
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: