View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011563 | mantisbt | plug-ins | public | 2010-02-26 07:17 | 2013-04-29 08:16 |
Reporter | agarcia | Assigned To | dhx | ||
Priority | normal | Severity | crash | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0 | ||||
Target Version | 1.2.4 | Fixed in Version | 1.2.4 | ||
Summary | 0011563: Fatal error importing issues | ||||
Description | Importing file, please wait... Done Fatal error: Call to undefined function bug_update() in /home/WwwRoot/mantisbt-1.2.0/plugins/XmlImportExport/ImportXml.php on line 114 | ||||
Steps To Reproduce | Try importing this content: <?xml version="1.0" encoding="UTF-8"?> | ||||
Tags | patch | ||||
I am hit by this bug, too. In fact, the file <mantis_root>/plugins/XmlImportExport/ImportXml.php has a call on line 114 to:
The function bug_update() used to exist in core/bug_api.php in earlier versions of Mantis, but not in V1.2.x. This is VERY strange, since the XmlImportExport plugin states "MantisBT Core 1.2.0" as dependency. Did the plugin developer test it at all? |
|
I changed the above mentioned line 114 to:
and it does work (i.e. the error does not occur). I am not sure if this is what the developer intended, though. |
|
Thanks Werner, I have committed your patch. This issue was already fixed in 1.3.x so I guess it was an oversight in backporting to the 1.2.x branch. |
|
MantisBT: master-1.2.x ea7af5eb 2010-09-17 21:24 Committer: dhx Details Diff |
Fix 0012246: Incorrect call to bug_update in ImportXml The XmlImportExport plugin (specifically ImportXml) makes an incorrect call to the now non-existant bug_update(..) function. This should be replaced with a call to the update() function on the BugData class. Signed-off-by: David Hicks <hickseydr@optusnet.com.au> |
Affected Issues 0011563 |
|
mod - plugins/XmlImportExport/ImportXml.php | Diff File |