Commit 44be6de
committed
fix(targetticket): possible SQL error
With a form configured to set location of a target ticket from a question, changing the question type to a text field causes attempt to set location from a string
instead if an ID. If the string contains a single quote, then the INSERT query is broken. This check the value is an integer. If not, lets ignore the value.
May need to lock questions when they are linked to a target.1 parent 34b230f commit 44be6de
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
| 956 | + | |
956 | 957 | | |
957 | 958 | | |
958 | 959 | | |
| |||
963 | 964 | | |
964 | 965 | | |
965 | 966 | | |
966 | | - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
967 | 970 | | |
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
971 | | - | |
972 | | - | |
973 | 974 | | |
974 | 975 | | |
975 | 976 | | |
| |||
0 commit comments