On Wed, Jun 11, 2014 at 2:47 PM, Marius Dumitru Florea
<[email protected]> wrote:
> On Wed, Jun 11, 2014 at 1:51 PM, Clemens Klein-Robbenhaar
> <[email protected]> wrote:
>> On 06/10/2014 05:34 PM, -bt- wrote:
>>> Hello Marius,
>>>
>>> thanks for your fast answer. I tried it but it still doesn't work. I also
>>> tried to delete some pages as the where not replaced by the import.
>>>
>>> For test I setup a new machine with a vanilla xwiki 6.0.1 and import the
>>> content from the other system.
>>> There it is working, with just one problem. The Guide show all Headlines
>>> twice. This happen also on a complete other virgin system as soon as I
>>> active the multilingual feature...
>>
>> I have no idea about the first issue, but at least I know about that one
>>
>> If you look into XWiki.XWikiSyntax in the wiki-editor, you should be able to 
>> find a line like:
>>
>>   #set($results = $services.query.xwql('from 
>> doc.object(XWiki.XWikiSyntaxClass) as syntax order by syntax.category, 
>> syntax.section').addFilter('currentlanguage').execute())
>>
>> if you replace it by:
>>
>> #set($results = $services.query.xwql('from 
>> doc.object(XWiki.XWikiSyntaxClass) as syntax order by syntax.category, 
>> syntax.section').addFilter('currentlanguage').addFilter('unique').execute())
>>
>> the duplicates go away.
>>
>
>> I am somewhat guilty of the complete contraption but I still have not 
>> figured out
>> why the duplicates creep up "sometimes" (actually the 
>> addFilter('currentlanguage') should prevent that ...)
>

> Could be related to http://jira.xwiki.org/browse/XWIKI-10384 .

I confirm it's the same issue, and it's indeed related to the
'currentlanguage' which returns both the translation corresponding to
the current language and the default translation.

>
> Thanks,
> Marius
>
>>
>>
>> hth,
>> clemens
>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to