Project

General

Profile

Actions

Defect #7156

closed

#4942 Harvest? maybe not - status_id and default operator go missing

Added by Sean Hignett about 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-22
Due date:
% Done:

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

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.


Related issues

Related to Redmine - Defect #4942: "Status can't be blank" on Issues page (After Upgrade)Closed2010-02-26

Actions
Actions #1

Updated by Filou Centrinov over 11 years ago

Relation: #4942

Actions #2

Updated by Toshi MARUYAMA over 11 years ago

  • Status changed from New to Needs feedback

This issue too old.
Please check on recent Redmine.

Actions #3

Updated by Jan Niggemann (redmine.org team member) over 11 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to No feedback
Email: sean@intelligent-design.ca
Registered on: 2010-12-22
Last connection: 2010-12-22

User didn't log in since creation of issue, closing.
Actions

Also available in: Atom PDF