schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
426 stars 292 forks source link

Test if filter exists before use #510

Closed gnat42 closed 5 years ago

gnat42 commented 5 years ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License Apache2

Description

The jms.js has a bug where if no html element named '#filter' it will cause a fatal error. This tests if the filter exists first before trying to use it.