Bug lors de l'affichage task.to_s
Problème de référence qui modifiait l'attribut @definition
This commit is contained in:
parent
8b12c2f51a
commit
a4cd356ea9
1 changed files with 1 additions and 1 deletions
2
task.rb
2
task.rb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue