- Fixed bug whereby adding a new task with "task add asdfsd pri:" resulted in gibberish values in the priority field.

This commit is contained in:
Paul Beckingham
2008-07-05 16:49:41 -04:00
parent 188b9f36f2
commit e85d36cea0
7 changed files with 25 additions and 4 deletions

View File

@@ -235,9 +235,7 @@ static bool validAttribute (
else if (name == "priority")
{
for (std::string::iterator i = value.begin (); i != value.end (); ++i)
*i = ::toupper (*i);
value = upperCase (value);
return validPriority (value);
}
@@ -248,7 +246,7 @@ static bool validAttribute (
name == "base" ||
name == "range")
throw std::string ("\"") +
name +
name +
"\" is not an attribute you may modify directly.";
return true;