Re: [Tiki-devel] legacy_index in preferences

Jonny Bradley via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi B

There should be something on dev somewhere about this, i eventually worked it out a few years ago as i wasn't sure what these were either.

They are only needed for field options that were in Tiki before the Trackers Revamp in Tiki 7, so you never need to add one to any new options added since then.

I guess it's still a good idea to keep them as we do have the ambition for it to be able to upgrade in one step from Tiki 1.x to 23.x, although surely mostly we wouldn't, especially sites with anything even slightly complex involving trackers included! ;)

So i guess we should remove any that were added since the revamp (i tiny i added a few ages ago), although i guess they would do nothing because Text fields from Tiki 6 could only have 6 options max, so number 7 would never be used...

HTH

jonny




> On 30 Jun 2021, at 19:05, Bsfez Tiki via TikiWiki-devel <[email protected]> wrote:
> 
> Hello,
> 
> At : lib/core/Tracker/Field/Text.php
> I see  a "legacy_index" for each preference, from 'legacy_index' => 0 to 'legacy_index' => 6
> 
> I understand it should be unique and not changed so If I add a preference (no matter where it is placed in the list) I just add the next number in line ? ('legacy_index' => 7)
> 
> Bernard
> 
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.