UDAs - User Defined Attributes

- Added support for named allowable values.
This commit is contained in:
Paul Beckingham 2012-07-02 22:22:19 -04:00
parent 0d3f6f990d
commit 7f1d8c3682
5 changed files with 34 additions and 2 deletions

View file

@ -596,7 +596,12 @@ void Command::modify_task (
// By default, just add/remove it.
else
task.set (name, value);
{
if (column->validate (value))
task.set (name, value);
else
throw format (STRING_INVALID_MOD, name, value);
}
// Warn about deprecated/obsolete attribute usage.
legacyAttributeCheck (name);