Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 323E4E00B9C; Tue, 29 Mar 2016 02:07:27 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.65 listed in list.dnswl.org] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A731FE00B46 for ; Tue, 29 Mar 2016 02:07:25 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 29 Mar 2016 02:07:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,410,1455004800"; d="scan'208,217";a="773700700" Received: from meskola-mobl3.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.26.30]) by orsmga003.jf.intel.com with ESMTP; 29 Mar 2016 02:07:25 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Tue, 29 Mar 2016 10:07:11 +0100 Message-Id: <1459242431-17140-3-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1459242431-17140-1-git-send-email-elliot.smith@intel.com> References: <1459242431-17140-1-git-send-email-elliot.smith@intel.com> Subject: [PATCH 2/2] toaster: fix sorting after hiding a column in build tables X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2016 09:07:27 -0000 When hiding a column in the build tasks or build packages included table, if the column is set as the current order by for the table, the order by is not reset to the default. The result is that the table stays sorted by the hidden column. Set the default_orderby for these two tables correctly to ensure the corresponding table is re-sorted when a column is hidden, if that column was being used as the order by. [YOCTO #9011] Signed-off-by: Elliot Smith --- .../lib/toaster/toastergui/templates/tasks.html | 2 +- bitbake/lib/toaster/toastergui/views.py | 50 +++++++++++----------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index 23eb957..84bc103 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html @@ -131,7 +131,7 @@