From 2ad6bbcc8aa1ae7cd8f407de84623612dbaf0b36 Mon Sep 17 00:00:00 2001 From: Ragaeeb Haq <7464039+ragaeeb@users.noreply.github.com> Date: Mon, 6 Jul 2015 14:32:21 -0400 Subject: [PATCH] The kunya should be displayed before the name #428 --- src/QueryHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QueryHelper.h b/src/QueryHelper.h index 3286f6a1..b931cbbd 100644 --- a/src/QueryHelper.h +++ b/src/QueryHelper.h @@ -13,7 +13,7 @@ #define CHAPTER_KEY "chapter" #define FROM_VERSE_KEY "fromVerse" #define TO_VERSE_KEY "toVerse" -#define NAME_FIELD(var) QString("coalesce(%1.displayName, TRIM((coalesce(%1.prefix,'') || ' ' || %1.name || ' ' || coalesce(%1.kunya,''))))").arg(var) +#define NAME_FIELD(var) QString("coalesce(%1.displayName, replace( TRIM( coalesce(%1.kunya,'') || ' ' || (coalesce(%1.prefix,'') || ' ' || %1.name) ) ), ' ', ' ' )").arg(var) namespace canadainc { class Persistance;