diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-09-10 20:50:05 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-09-10 20:50:05 +0200 |
commit | 07a9f4248c978771e55dc9054238ff03a4d6865c (patch) | |
tree | f98f4a1e98d06bd1d59c188a9f31032a1bd74907 /lib/util.js | |
parent | 2a7171fb5cd16ae361916dd0dd97d566f970a6df (diff) | |
download | bugzilla-triage-07a9f4248c978771e55dc9054238ff03a4d6865c.tar.gz |
Getting Bug.get via XML-RPC
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js index 76c8a02..18a3c1b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -60,10 +60,13 @@ var getParamsFromURL = exports.getParamsFromURL = function getParamsFromURL (url return params; }; +/** + * FIXME this should go to bzpage.js ... no reason to keep it here + */ exports.getBugNo = function getBugNo(url) { var params = getParamsFromURL(url); if (params && params.id) { - return parseInt(params.id, 10); + return params.id; } }; @@ -207,4 +210,4 @@ exports.getObjectKeys = function getObjectKeys(obj) { } } return keys; -};
\ No newline at end of file +}; |