orm: Fix serious logic issue in the save() method
Merge pull request #324 from greezybacon/issue/orm-logic-oops

orm: Fix serious logic issue in the save() method

Reviewed-By: Peter Rotich  <peter@osticket.com>