Return level's constant when level's name is passed.

Merged Bitbucket Importer requested to merge bitbucket/merged-pr-156 into branch/default

Created originally on Bitbucket by flaper87 (Flavio Percoco)

Was already merged in Bitbucket before import, marked as merged by the import user

After splitting _levelNames dictionary into 2 separate dicts, the getLevelName function stopped returning the level's integer value when the level's name is passed as argument. This patch restores that behavior.

Fixes bug: 1517

Merge request reports