[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:25:13 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=4fffd7f

The following commit has been merged in the master branch:
commit 4fffd7ffa7ef7461bd7ffba270b60046bed34048
Author: Martin Klapetek <mklapetek at kde.org>
Date:   Mon Feb 9 18:02:41 2015 +0100

    [filters] Fix the bugzilla filter
    
    Couple porting bugs crept in
---
 filters/bugzilla/bugzilla-filter.cpp | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/filters/bugzilla/bugzilla-filter.cpp b/filters/bugzilla/bugzilla-filter.cpp
index 169ebfa..4e76ca3 100644
--- a/filters/bugzilla/bugzilla-filter.cpp
+++ b/filters/bugzilla/bugzilla-filter.cpp
@@ -66,18 +66,21 @@ void BugzillaFilter::addBugDescription(KTp::Message &message, const QUrl &baseUr
     d->requestCounter++;
 
     QUrl request(baseUrl);
-    request.setPath(request.path() + QStringLiteral("jsonrpc.cgi"));
+    request.setPath(QStringLiteral("/jsonrpc.cgi"));
 
     QUrlQuery query(request);
+    QString id = query.queryItemValue(QStringLiteral("id"));
+    // Clear the query because we're setting the id as local one for identification
+    // and QUrlQuery just adds another id query item, so let's just clear it
+    query.clear();
 
     query.addQueryItem(QStringLiteral("method"), QStringLiteral("Bug.get"));
-    query.addQueryItem(QStringLiteral("params"),
-                       QString(QStringLiteral("[{\"ids\":[%1]}]")).
-                           arg(query.queryItemValue(QStringLiteral("id"))));
-
+    query.addQueryItem(QStringLiteral("params"), QStringLiteral("[{\"ids\":[%1]}]").arg(id));
     query.addQueryItem(QStringLiteral("callback"), QStringLiteral("showBugCallback"));
     query.addQueryItem(QStringLiteral("id"), bugRequestId);
 
+    request.setQuery(query);
+
     message.appendMessagePart(QString::fromLatin1("<p><a href=\"%1\" id=\"%2\"></a></p>").arg(baseUrl.toDisplayString(), bugRequestId));
     message.appendScript(QString::fromLatin1("showBug(\"%1\");").arg(request.toDisplayString()));
 }

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list