Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5717

Fix incorrect editor value gotten by Runner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.9.0, 0.10.0, 0.10.1
    • 0.11.0
    • None
    • None

    Description

      When user runs paragraph with input box, under the runner role, once they press 'enter' key, the paragraph content will be overwritten and lost (become empty).

      I am trying to debug, and find that, in such case, the value of selected paragraph is blank, and it will be passed to backend to run via websocket, and backend will persist it as right now runner are also allowed to save paragraph(perhaps they also need to change parameters)

      Then with more debugging, found that the value of "paragraph" is incorrect.

      Because for user under runner role, the editor is hidden, so the $scope.editor object is not empty and the $scope.editor.getValue() function may return a null value.

      So there should be one more condition to judge: if user cannot view editor, it's also expected to get editor value from $scope.paragraph.text as well.

      I already fix this issue and will make the commit on git soon.

      Attachments

        1. image-2022-04-13-14-26-39-640.png
          32 kB
          Sun Shun
        2. image-2022-04-13-14-20-39-149.png
          132 kB
          Sun Shun
        3. image-2022-04-13-14-18-56-519.png
          19 kB
          Sun Shun
        4. image-2022-04-13-14-07-07-135.png
          40 kB
          Sun Shun

        Issue Links

          Activity

            People

              suns Sun Shun
              suns Sun Shun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: