[TYPO3-dev] alwaysActivePIDlist
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Mon Oct 23 15:41:01 CEST 2006
Dmitry Dulepov schrieb:
> Hi!
>
> Steffen Kamper wrote:
>> i know that it is list of integer but i didn't know that copiing from
>> a textobject with Integerlist as value fail.
>> I hoped that this was only cause my mistake.
>
> This is a common mistake :) You do not compy TEXT object, you copy its
> definition! I.e. if you do:
>
> tmp.ipds = TEXT
> tmp.pids.value = 1,2,3
> hmenu.alwaysActivePIDlist < tmp.pids
>
> what you get is:
>
> hmenu.alwaysActivePIDlist = TEXT
> hmenu.alwaysActivePIDlist.value = 1,2,3
>
> which is obviously wrong.
Maybe we could add a "value-copy" into TS. Or we could create a function
for it:
obj1.prop := objVal(obj2)
Masi
More information about the TYPO3-dev
mailing list