Always get a fresh copy of the survey after doing revision control.

This commit is contained in:
Colin Kuskie 2010-06-11 19:11:12 -07:00
parent 1e55078ac0
commit 7df0cc51ed
2 changed files with 4 additions and 2 deletions

View file

@ -847,6 +847,7 @@ sub submitObjectEdit {
$survey = $self->addRevision;
$newVersionTag->commit();
$survey = $survey->cloneFromDb;
#Restore the old one, if it exists
$oldVersionTag->setWorking() if $oldVersionTag;