sarbian/ModuleManager

targetting + checking content weird bug

Closed this issue · 1 comments

this is a really weird behaviour, when I made the test config I wasn't expecting this to be the result:

// CONFIG
TESTNODE
{
    SUBNODE
    {
        name = one
    }
    SUBNODE
    {
        name = two
    }
    SUBNODE
    {
        name = three
    }
}
@TESTNODE
{
    @SUBNODE,1:HAS[#name[*]]
    {
        second = true
    }
}

// RESULT
UrlConfig
{
    name = TESTNODE
    type = TESTNODE
    parentUrl = /test
    url = /test/TESTNODE
    TESTNODE
    {
        SUBNODE
        {
            name = one
        }
        SUBNODE
        {
            name = two
            second = true
        }
        SUBNODE
        {
            name = three
            second = true
        }
    }
}

the behaviour is the same both in 2.6.13 and 2.6.16

this is from the old mm, I haven't checked it in the new version so I am going to close it for now untill I have an idea on how this works now