tracker issue : CF-3737514

select a category, or use search below
(searches all categories and all time range)
Title:

CFCLIENT: Functions : Function ljustify, rjustify gives error when number is passed as a first argument

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)

Created: 04/05/2014

Components: Mobile Support, Data Structure

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 289635 / CF11 Update5

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Code snippet
<div id="actual_1" class="actual">
<cfclient>
<cftry>
<cfoutput>#lJustify(5, 1)#</cfoutput>
<cfcatch><cfoutput>#cfcatch.message#</cfoutput></cfcatch>
</cftry>
</cfclient>
</div>

In CF server it gives output as : 5
In cfclient it gives error : Cannot call method 'charCodeAt' of undefined

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3737514

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Issue is fixed getting the correct output. Hence, closing this bug. (Comment added from ex-user id:prk)
Comment by Adobe D.
12844 | December 04, 2014 02:40:41 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
12845 | February 20, 2015 09:27:43 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). For lJustify(), the numeric first parameter is returned instead of error "str is undefined". For rJustify(), it also worked properly (returned numeric first parameter) in CF11 Update 4 (build 11,0,04,293328). Thanks!, -Aaron
Comment by External U.
12846 | November 23, 2015 05:30:44 PM GMT