Content
Cost Plugin: Rates don't save
Added by Sira Sandberg about 6 years ago
Hello OpenProject community,
I'm a Ruby & OpenProject newbie with a fresh V7.4.7 install on my local machine (macOS High Sierra). We're looking for an extendable PM solution that includes budgeting so I added the Costs & Reporting plugin which looked quite promising. However, after diving deeper I noticed I cannot save any rates/hours, neither in the user settings nor the projects' (see Screenshots). At first glance it looked like missing JS as clicking on the recycling bin icon or "Add rate" does nothing. I can add budgets and cost types - but rates won't save anywhere but on the "Cost Types" list in the "Set current Rate" column. Obviously I ran db:migrate and npm after the plugin installation so what am I missing here?
In the development.log i can see that the rate values are passed as followed:
"new_rate_attributes"=>{"INDEX"=>{"valid_from"=>"2018-09-11", "rate"=>"40"}}, "existing_rate_attributes"=>{"1"=>{"valid_from"=>"2018-09-10", "rate"=>"30.0"}}}
And a few lines later it states Unpermitted parameter: INDEX
. So I guess that's where the data disappears - doesn't like the "INDEX" param name.
Now, is this a bug in the plugin or a version conflict, ooor...? I had to use "stable/7" for all 3 plugins (reporting_engine, openproject-costs, openproject-reporting) in order make bundle install run through. Could that be an issue here?
Any tips would be appreciated :-)