Skip to content

channel = not x param doesn't work correctly if 'x' doesn't exist #3429

Closed
@robinsowell

Description

@robinsowell

So I use "not x" when 'x' doesn't exist a lot in parameters as a quick 'show me everything'.

I just noticed, it doesn't work on the entries tag, channel parameter.

{exp:channel:entries channel="not gone"}

If the channel 'gone' doesn't exist? I get no entries back. If it DOES exist, it works properly- I get entries from all channels except gone.

I'm guessing it bails out early if it can't find a channel specified in the 'not' but this was unexpected behavior. Not sure when it broke- tested a 7.2.13 and it was broken.

I don't do this a ton with the channel param, but obviously, I do it sometimes. I use it in status a lot as a quick cheat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions