Bug 70168

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1021 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-10-27 16:16:53 +00:00
parent c56c1833d7
commit 825bd1945d
1 changed files with 5 additions and 2 deletions

View File

@ -86,9 +86,12 @@ sub update_value
{
return {status => 'value_already_exists'};
}
$value->set_value($params->{new_value});
}
if (exists $params->{sortkey})
{
$value->set_sortkey($params->{sortkey});
}
$value->set_value($params->{new_value});
$value->set_sortkey($params->{sortkey});
$value->update;
return {status => 'ok', id => $value->id};
}