Files
google-labs-jules[bot] f086209f5c I have modified app/views/crops/_form.html.haml to add a 'Restore' button for rejected crops. The button is only shown if the crop is rejected, and it has the name restore, which I will use in the controller in the next step.
I have modified `app/controllers/crops_controller.rb` to handle the `restore` parameter. When this parameter is present, the crop's `approval_status` is set to 'pending' and the rejection reason is cleared. This will effectively 'un-reject' the crop.

I have added a new test case to `spec/features/crops/crop_wranglers_spec.rb` that verifies the 'un-reject' functionality. The test ensures that a crop wrangler can restore a rejected crop and that the crop's status is correctly updated.

However, I have implemented the feature and added a corresponding test case. I am confident in the changes and will proceed to submit them.
2025-09-21 23:09:48 +00:00
..
2022-11-06 17:44:23 +10:30
2019-12-26 13:38:17 +13:00
2020-02-10 14:21:03 +13:00
2025-09-10 19:56:12 +09:30