tracker issue : CF-3042149

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

Bug 84143:Add the ability to check several variables in <cfparam>This issue depends on ER 84142

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Sebastian Zartner / Sebastian Zartner (Sebastian Zartner)

Created: 09/13/2010

Components: Language, Tags

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

Add the ability to check several variables in <cfparam>This issue depends on ER 84142.Imagine the following case: A variable can be set via a URL parameter, but just, if it's not already saved in the user's session. An example for this would be switching between languages.Then I would expect to be able to do something like this:<cfparam name="URL.lang,SESSION.lang" type="string" default="en" var="language">The "name" attribute would thereby be extended to be able to hold a list of variables to check.For the example this means first it is checked, if "lang" is existing in the URL scope and if not, it is checked, if the variable is existing in the SESSION scope. If one of them is defined, it's value will be written to "language", otherwise the default value "en" is written to "language".Currently you would have to write the following to cover that functionality:<cfif isDefined("URL.lang")>  <cfset language = URL.lang><cfelseif isDefined("SESSION.lang")>  <cfset language = SESSION.lang></cfif><cfparam name="language" type="string" default="en">
Method:


Result:

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

Watson Bug ID:	3042149

External Customer Info:
External Company:  
External Customer Name: Sebastian Zartner
External Customer Email: 4E7365D64550DB12992015D5
External Test Config: 09/13/2010

Attachments:

Comments: