Commit 908a754
committed
Only create links for existing bugs
Prior to this, when processing a non-existing bug id referenced in the
commit message, the plugin incorrectly created a link to the issue in
the Source_bug table, and inserted an entry in the bug_history table.
This caused MantisBT timeline to crash as it processed an invalid
history entry.
This commit fixes the incorrect behavior by checking for referenced
bugs' existence in Source_Process_Changesets() function prior to
processing them, so only valid bug links and history records are
created.
Fixes #1571 parent e242bdf commit 908a754
1 file changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
| |||
247 | 252 | | |
248 | 253 | | |
249 | 254 | | |
250 | | - | |
251 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
| |||
283 | 293 | | |
284 | 294 | | |
285 | 295 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
| |||
0 commit comments