Issues

We do not recommend that you setup new ChiliProject instances and
we urge all existing users to migrate their data to a maintained
system, e.g. Redmine. We will
provide a migration script later. In the meantime, you can use the
instructions by
Christian Daehn.

Accessing version of newly created WikiContent results in NoMethodError (Bug #537)

When executing the following code, I'm getting 0 in Chili 1.x while I get an error in Chili 2.0:

WikiContent.new.version

The error output looks like the following

NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
from app/models/wiki_content.rb:65:in `version'
from (irb):2

The code creates an initial journal - which involves a db update - which seems to be wrong since I did not save anything up to this point. I think, the version method should simply return 0 for new records.