sarbian / ModuleManager

177 stars 95 forks source link

targetting + checking content weird bug #42

Closed Sigma88 closed 6 years ago

Sigma88 commented 8 years ago

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

Sigma88 commented 6 years ago

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