civicrm/civicrm-core — pull request #2744 by pratik-joshi (2014-03-26 09:03:06+00:00)
Title: fix for : form rule validation notifications not shown

Reproducible by following : Visit New Individual screen and without filling any details, save the form, the expected validation notification for 'email or first name and last name are required' doesn't appear.

The bug : somehow assigned value for $snippet = 0 fails this : $snippet neq 'json' check.

The fix : verified the numeric values and noticed this only happens for snippet = 0 value, so made some minor modifications to the condition.