- Delegated the modifiability check to Column::modifiable.
This commit is contained in:
Paul Beckingham 2015-03-01 21:36:56 -05:00
parent 7aa55a8a71
commit cefc129e9a

View file

@ -1960,17 +1960,13 @@ 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];
// Some columns are not modifiable.
if (! column->modifiable ())
throw format (STRING_INVALID_MOD, name, value);
// Dependencies are specified as IDs.
if (name == "depends")
{