- Modification diagnostics were missing for 'recur' attribute.
This commit is contained in:
Paul Beckingham 2014-11-22 13:38:24 -05:00
parent dc1e01b1c2
commit 85518c646f

View file

@ -2009,6 +2009,7 @@ void Task::modify (modType type, bool text_required /* = false */)
} }
// Special case: type duration. // Special case: type duration.
// Note: "recur" is marked as type "string" to force storage in raw form.
else if (name == "recur" || else if (name == "recur" ||
column->type () == "duration") column->type () == "duration")
{ {
@ -2025,6 +2026,7 @@ void Task::modify (modType type, bool text_required /* = false */)
if (v.type () == Variant::type_duration) if (v.type () == Variant::type_duration)
{ {
// Store the raw value, for 'recur'. // Store the raw value, for 'recur'.
context.debug (label + name + " <-- '" + value + "'");
set (name, value); set (name, value);
++modCount; ++modCount;
} }