Issue #1991064 by crevillo: Fixed Assignment in condition check breaks certain statuses condition checks. Also, removed trailing whitespace.