Bug lors de l'affichage task.to_s

Problème de référence qui modifiait l'attribut @definition
This commit is contained in:
Yann Esposito 2009-06-08 09:28:51 +02:00
parent 8b12c2f51a
commit a4cd356ea9

View file

@ -15,7 +15,7 @@ class Task
from_s(raw_input)
end
def to_s
res=@description
res=@description.clone
if (@contexts.length>0): res<<=' ' + @contexts.map { |x| '@'+x.to_s }.join(" ") end
if (@projects.length>0): res<<=' ' + @projects.map { |x| '['+x.to_s+']' }.join(" ") end
if (@priority != 0): res<<=' /'+ @priority.to_s + '\\' end