Browse the code

 

Differences between 623 and 624 on /.
Number of edited files: 1 (0 added, 0 deleted and 1 modified)
Revision 624

About 13 days and 0 hour ago.

Fixed a bug in SCM commit hooks (fail because of an erronous bug identifier, fixes #239)
Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
178
178
                        $date = date('Y-m-d H:i:s');
179
179

                                        
180
180
                        $lastid = $bug_class->addAnswer(array(
181
 
                                               'bugid'             => $bugid,
 
181
                                               'bugid'             => $bug_class->getId(),
182
182
                                               'name'              => $title,
183
183
                                               'text'              => $text,
184
184
                                               'allow_nl2br'       => TRUE,
189
189

                                        
190
190
                        // Update bug's log
191
191
                        $values = array();
192
 
                        array_push($values, array('bugid' => $bugid));
 
192
                        array_push($values, array('bugid' => $bug_class->getId()));
193
193
                        array_push($values, array('projectid' => $prj_id));
194
194
                        array_push($values, array('unregistered_nick' => ''));
195
195
                        array_push($values, array('registered_id' => $user_id));
213
213
                        $bug_class->addLog($logentry);
214
214

                                        
215
215
                        $bu = '/project/'.$dbname;
216
 
                        deleteCacheVersion($bu.'/bugs/show/'.$bugid);
 
216
                        deleteCacheVersion($bu.'/bugs/show/'.$bug_class->getId());
217
217
                        deleteCacheVersion($bu.'/timeline', TRUE);
218
218

                                        
219
219
                        // Close the bug (with status: resolved)
238
238
                        $date = date('Y-m-d H:i:s');
239
239

                                        
240
240
                        $lastid = $bug_class->addAnswer(array(
241
 
                                               'bugid'             => $bugid,
 
241
                                               'bugid'             => $bug_class->getId(),
242
242
                                               'name'              => $title,
243
243
                                               'text'              => $text,
244
244
                                               'allow_nl2br'       => TRUE,
249
249

                                        
250
250
                        // Add the answer to the log
251
251
                        $values = array();
252
 
                        array_push($values, array('bugid' => $bugid));
 
252
                        array_push($values, array('bugid' => $bug_class->getId()));
253
253
                        array_push($values, array('projectid' => $prj_id));
254
254
                        array_push($values, array('unregistered_nick' => ''));
255
255
                        array_push($values, array('registered_id' => $user_id));
273
273
                        $bug_class->addLog($logentry);
274
274

                                        
275
275
                        $bu = '/project/'.$dbname;
276
 
                        deleteCacheVersion($bu.'/bugs/show/'.$bugid);
 
276
                        deleteCacheVersion($bu.'/bugs/show/'.$bug_class->getId());
277
277
                        deleteCacheVersion($bu.'/timeline', TRUE);
278
278
                    }
279
279
                }
280
280