Added by strexy strexy almost 15 years ago
Hi all,
I'm trying to customize the function create_journal in /APP/MODELS/issue.rb
This function starts with an IF condition:
if @current_journal
...
...
end
I'd like to add another condition, it should create a journal only on particular issue statuses:
if @current_journal && (issue.status==1) && (issue.status==8)
...
...
end
But it gets me an error when I try to update a task.
Maybe another variable like status_id or something else?
Could someone help me, pls?
Thanks a lot.
|strexy
OK, got it. It's status_id, just like that.
|strexy