From 94b1d40a72f55b787fa78a9398f47eb8514e0d21 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 8 Feb 2010 13:38:50 +0100 Subject: make "reason" field less verbose; bz reporter: include it in "summary" Signed-off-by: Denys Vlasenko --- lib/Plugins/Bugzilla.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index b809e34c..9e889c4b 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -315,8 +315,14 @@ uint32_t ctx::new_bug(const map_crash_data_t& pCrashData) const std::string& release = get_crash_data_item_content(pCrashData, FILENAME_RELEASE); const std::string& arch = get_crash_data_item_content(pCrashData, FILENAME_ARCHITECTURE); const std::string& uuid = get_crash_data_item_content(pCrashData, CD_DUPHASH); + const char *reason = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_REASON); std::string summary = "[abrt] crash in " + package; + if (reason != NULL) + { + summary += ": "; + summary += reason; + } std::string status_whiteboard = "abrt_hash:" + uuid; std::string description = "abrt "VERSION" detected a crash.\n\n"; -- cgit