[ic] Strange bug in [loop]
Don
dhthwy at gmail.com
Thu Jan 8 21:17:14 UTC 2009
Jeff Boes wrote:
> I've found a strange behavior in [loop] that only exhibits on Admin (UI) pages.
> This shows up in my local install, V5.3.2.
>
> Here's the basic page:
>
> [loop
> delimiter=":"
> lr=1
> list="col1a:col2a:col3a
> col1b:col2b:col3b"
> ][list]
> First: [loop-pos 0]; Second: [loop-pos 1]; Third: [loop-pos 2] <br/>
> [/list][/loop]
>
> This produces, as you might expect:
>
> First: col1a; Second: col2a; Third: col3a
> First: col1b; Second: col2b; Third: col3b
>
> However, if you surround the basic page with --
>
> @_UI_STD_HEAD_@
> ...basic stuff here...
> @_UI_STD_FOOTER_@
>
> you get the entirely unexpected
>
> First: col1a:col2a:col3a; Second: ; Third:
> First: col1b:col2b:col3b; Second: ; Third:
>
> I.e., the delimiter ":" is ignored.
>
> If you trap the basic stuff in a scratch variable first:
>
> [tmp foo]...basic stuff here...[/tmp]
> @_UI_STD_HEAD_@
> [scratch foo]
> @_UI_STD_FOOTER_@
>
> the original expected behavior returns -- but all the menu tabs normally
> produced are displayed blank!
>
> My colleagues at End Point have looked at this briefly, and our assumption is
> that the [menu] tag within UI_STD_HEAD is at fault somehow. I'm not sure if this
> is a bug in [menu], in [loop], or in the UI_STD_HEAD code.
>
>
It won't reproduce that behavior for me on version 5.6.1
More information about the interchange-users
mailing list