Filter ‘blah’ is not defined

3 years ago

Pavel Janda
Member | 798
+
0
-

When Filter is defined, but returns void (does not return anything), Latte says it is not defined.

Is that a bug or just an inaporpriate error message?

3 years ago

Felix
Nette Core | 889
+
0
-

No it's not.

Here, checking if filter is defined (https://github.com/…e/Engine.php#L298)

Otherwise, return filter value (https://github.com/…e/Engine.php#L312)

3 years ago

Pavel Janda
Member | 798
+
0
-

Well than it should not throw an Exception.

3 years ago

Milo
Nette Core | 1101
+
0
-

@PavelJanda If you are sure that the filter is really registered, open an issue please.

3 years ago

Pavel Janda
Member | 798
+
0
-

Done