#4942 Harvest? maybe not - status_id and default operator go missing
|Resolution:||No feedback||Affected version:||1.0.4|
I was getting the "Status can't be blank" error every time I clicked on Issues or Gannt. Redmine issue #4942 suggested this was due to the Harvest Plugin, but I removed it, and still got the error...
I am a noob to Rails, but I tracked it down to the "validate" on the Query model object which fails because both the status_id value and operator are blank in the filter, despite that initialize seems to set an operator of "o".
Something seems to be clobbering the value after the fact. Couldn't find the source, but checking for the condition pre-validate, and correcting it by putting back the "o" solves the issue - albeit hacky - it is better then the broken nagging status error message.
Once past validation, line 419 will then choke:
v = values_for(field).clone
so I had to work around that as well... now things seem to work again... but if it is the harvest plugin, it isn't obvious. I think someone who knows the code better should take a closer look.