TW-1420, TW-1421, TW-1422

- TW-1420 Modifying 'uuid' fails to generate error (thanks to Black Ops Testing).
- TW-1421 Modifying 'uuid' with bogus value can corrupt undo.data (thanks to
          Black Ops Testing).
- TW-1422 Attempt to modify 'id' attribute creates an id attribute (thanks to
          Black Ops Testing).
This commit is contained in:
Paul Beckingham 2014-10-13 00:18:01 -04:00
parent 1e03db77ca
commit 0183c8a231
3 changed files with 14 additions and 0 deletions

View file

@ -1938,6 +1938,14 @@ void Task::modify (modType type, bool text_required /* = false */)
}
else
{
// Some columns are not modifiable.
if (name == "uuid" ||
name == "id" ||
name == "mask" ||
name == "imask" ||
name == "parent")
throw format (STRING_INVALID_MOD, name, value);
// Get the column info.
Column* column = context.columns[name];