Rothamsted-Ecoinformatics / farm_rothamsted

Custom farmOS features for Rothamsted Research.
GNU General Public License v2.0
6 stars 1 forks source link

FarmOS 3.0: Error when creating a new proposal #615

Closed aislinnpearson closed 7 months ago

aislinnpearson commented 7 months ago

When trying to create a new proposal on the platform.sh site I get the below error.

Fatal error: Declaration of Drupal\farm_rothamsted_experiment_research\Plugin\Validation\Constraint\RothamstedStatusConstraint::isset($option) must be compatible with Symfony\Component\Validator\Constraint::isset(string $option): bool in /app/web/modules/farm_rothamsted/modules/farm_rothamsted_experiment_research/src/Plugin/Validation/Constraint/RothamstedStatusConstraint.php on line 57

I am not sure if this is related but I also got the below error every time I tried to 'add multiple' to a question (e.g. add more than one researcher)

image

So I tried to submit the form without any of the add multiple fields (required data fields only) but got the same issue, so may be two separate problems?

Fatal error: Declaration of Drupal\farm_rothamsted_experiment_research\Plugin\Validation\Constraint\RothamstedStatusConstraint::isset($option) must be compatible with Symfony\Component\Validator\Constraint::isset(string $option): bool in /app/web/modules/farm_rothamsted/modules/farm_rothamsted_experiment_research/src/Plugin/Validation/Constraint/RothamstedStatusConstraint.php on line 57

paul121 commented 7 months ago

This was a simple fix, both cases (creating a proposal and adding multiple values) should be fixed.