From: Cash Costello Date: Fri, 4 Nov 2011 00:27:23 +0000 (-0400) Subject: Refs #4051 insert also needed to check for undefined priorities X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8f537ce0d21aa86fcb6a10e2fab4ac46fe1b473d;p=lorea%2Felgg.git Refs #4051 insert also needed to check for undefined priorities --- diff --git a/js/classes/ElggPriorityList.js b/js/classes/ElggPriorityList.js index f7f91bb0f..b4cec5044 100644 --- a/js/classes/ElggPriorityList.js +++ b/js/classes/ElggPriorityList.js @@ -17,7 +17,7 @@ elgg.ElggPriorityList = function() { */ elgg.ElggPriorityList.prototype.insert = function(obj, opt_priority) { var priority = 500; - if (arguments.length == 2) { + if (arguments.length == 2 && opt_priority != undefined) { priority = parseInt(opt_priority, 10); }