Menu

#496 Faulty logic in automatic script editor title and language selection

None
open
nobody
None
5
2017-05-13
2017-04-09
Pete
No

Hi.

There is some automation in creating the title and name and selecting the script language in the script editor, but it keeps getting things wrong:

Current behavior:

  • When I have edited and saved a script and closed the editor, at reopen the script text is there and the script name is correct but the language selection is forced to groovy even if the script is in bsh.
  • When I already have a script open in one editor and open another one, the text field is empty but the file name is copied from the other sript window and the language is set to groovy.
  • When I have had several scripts open and then open a new editor, the name comes from the last opened script, the text from the script, that was opened first during that session and the language selection is groovy.

Expected:

  • When the editor displays a script that already exists, the name and the language settins should match the script.
  • When the editor is empy, a name of an existing script should not be displayed. ("Untitled" would be acceptable.)

This is somethig, that has been wrong since the dawn of time. The current behavior poses a veru real risk of saving over a wrong script.

Discussion

  • Pete

    Pete - 2017-04-09

    I don't know why the last bullet appear in larger font. Unfortunately it can not be edited.

     
  • Luke S

    Luke S - 2017-05-13

    Re: formating: you had an extra dash on the line under the item, which is a SF Markdown trigger for a Header. It can be edited, but it leaves mess in the report history, as you will see:

     
  • Pete

    Pete - 2017-05-13

    It can be edited

    How does that happen? I must be missing something?

     

Log in to post a comment.