Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B2586E006B3; Mon, 20 Jun 2016 05:07:42 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [23.83.209.23 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 395 seconds by postgrey-1.32 at yocto-www; Mon, 20 Jun 2016 05:07:38 PDT Received: from gt-egress-001.mailchannels.net (brown.birch.relay.mailchannels.net [23.83.209.23]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 69054E00474 for ; Mon, 20 Jun 2016 05:07:38 -0700 (PDT) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2FCBE6998A; Mon, 20 Jun 2016 12:01:01 +0000 (UTC) Received: from uscentral428.accountservergroup.com (ip-10-42-131-234.us-west-2.compute.internal [10.42.131.234]) by relay.mailchannels.net (Postfix) with ESMTPA id 7A975664F0; Mon, 20 Jun 2016 12:01:00 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from uscentral428.accountservergroup.com (uscentral428.accountservergroup.com [10.223.11.100]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.6.14); Mon, 20 Jun 2016 12:01:01 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|elliot@townx.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1466424091635:2887526712 X-MC-Ingress-Time: 1466424091635 Received: from [176.251.19.34] (port=37594 helo=localhost.localdomain) by uscentral428.accountservergroup.com with esmtpa (Exim 4.87) (envelope-from ) id 1bExvC-0001Sh-VU; Mon, 20 Jun 2016 08:03:19 -0400 From: Elliot Smith To: toaster@yoctoproject.org Date: Mon, 20 Jun 2016 13:00:46 +0100 Message-Id: <1466424046-13234-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 2.7.4 X-AuthUser: elliot@townx.org Subject: [PATCH] toaster: fix typo in arguments for libtoaster.js function 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: Mon, 20 Jun 2016 12:07:42 -0000 The function for flattening the targets of a previous build to a space-separated list references prev and next arguments which aren't in the function signature. This prevents the "Rebuild" buttons (in the most-recent build section) from working. Fix the typo so that the buttons work again. Signed-off-by: Elliot Smith --- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index eafe70d..a1379e1 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -94,7 +94,7 @@ var libtoaster = (function () { /* Flatten the array of targets into a space spearated list */ if (targets instanceof Array){ - targets = targets.reduce(function(prevV, nextV){ + targets = targets.reduce(function(prev, next){ return prev + ' ' + next; }); } -- 2.7.4