Hi again,
Yes, the occurrence comment 'dummy' did get saved. I've changed the log threshold and tested two things - entering a new record and editing an existing one:
If I masquerade as a user and submit a new record (with a comment 'test record for Zaleya. Sens is 1km' and a sensitivity value of 1km) the relevant part of the log shows this:
2022-09-21 12:26:03 +02:00 --- debug: Submitting submodel occurrence.
2022-09-21 12:26:03 +02:00 --- debug: About to validate the following array in model occurrence
2022-09-21 12:26:03 +02:00 --- debug: <pre>(array) Array
(
[occAttr:87] => 225
[occAttr:21] => 1
[occAttr:137::0] => 377
[occAttr:137::1] => 378
[occAttr:137::2] => 379
[occAttr:137::3] => 380
[occAttr:139::0] => 401
[occAttr:138::0] => 381
[occAttr:138::1] => 382
[comment] => test record for Zaleya. Sens is 1km.
[zero_abundance] => f
[taxa_taxon_list_id] => 8733
[website_id] => 2
[record_status] => C
[sample_id] => 489163
)
</pre>
2022-09-21 12:26:03 +02:00 --- debug: Record 687064 has validated successfully
2022-09-21 12:26:03 +02:00 --- debug: SELECT "occurrence_attributes"."id", "occurrence_attributes"."caption", "occurrence_attributes"."data_type"
FROM occurrence_attributes
JOIN "occurrence_attributes_websites" ON ("occurrence_attributes_websites"."occurrence_attribute_id" = "occurrence_attributes"."id")
LEFT JOIN "occurrence_attribute_taxon_restrictions" AS "tr" ON ("tr"."occurrence_attributes_website_id" = "occurrence_attributes_websites"."id")
WHERE "occurrence_attributes"."deleted" = 'f'
AND "occurrence_attributes_websites"."deleted" = 'f'
AND "occurrence_attributes_websites"."website_id" = '2'
AND ("occurrence_attributes_websites"."restrict_to_survey_id" IN ('25') OR "occurrence_attributes_websites"."restrict_to_survey_id" IS NULL)
AND (occurrence_attributes_websites.validation_rules like '%required%' or occurrence_attributes.validation_rules like '%required%')
AND tr.id IS NULL
ORDER BY "occurrence_attributes"."caption" ASC
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 225 into field int_value for attribute occAttr:87.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 1 into field int_value for attribute occAttr:21.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 377 into field int_value for attribute occAttr:137.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 378 into field int_value for attribute occAttr:137.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 379 into field int_value for attribute occAttr:137.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 380 into field int_value for attribute occAttr:137.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 401 into field int_value for attribute occAttr:139.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 381 into field int_value for attribute occAttr:138.
2022-09-21 12:26:03 +02:00 --- debug: Accepted value 382 into field int_value for attribute occAttr:138.
2022-09-21 12:26:03 +02:00 --- debug: Done inner submit of model occurrence with result 687064
2022-09-21 12:26:03 +02:00 --- debug: Done inner submit of model sample with result 489163
2022-09-21 12:26:03 +02:00 --- debug: Committing transaction.
So it lists (and saves) the comment correctly but doesn't show (or save) the sensitivity_precision at all.
If I masquerade as the user, and go to My records and change two things on a record (the comment to "dummy record and sensitive" and the sensitivity precision to 100000) the relevant part of the log file (i.e. the only bit which has the updated comment) has this:
2022-09-21 11:48:54 +02:00 --- debug: About to validate the following array in model occurrence
2022-09-21 11:48:54 +02:00 --- debug: <pre>(array) Array
(
[id] => 687050
[sample_id] => 489146
[determiner_id] =>
[confidential] => f
[created_on] => 2022-09-20 14:51:38
[created_by_id] => 23
[website_id] => 2
[external_key] =>
[comment] => dummy record and sensitive
[taxa_taxon_list_id] => 11946
[deleted] => f
[record_status] => C
[verified_by_id] =>
[verified_on] =>
[downloaded_flag] => N
[downloaded_on] =>
[all_info_in_determinations] => N
[zero_abundance] => f
[last_verification_check_date] => 2022-09-21 11:45:00
[training] => f
[sensitivity_precision] =>
[release_status] => R
[record_substatus] =>
[record_decision_source] =>
[import_guid] =>
[metadata] =>
[occAttr:87] =>
[occAttr:21] =>
)
</pre>
2022-09-21 11:48:54 +02:00 --- debug: Record 687050 has validated successfully
2022-09-21 11:48:54 +02:00 --- debug: Accepted value into field int_value for attribute occAttr:87.
2022-09-21 11:48:54 +02:00 --- debug: Accepted value into field int_value for attribute occAttr:21.
2022-09-21 11:48:54 +02:00 --- debug: Done inner submit of model occurrence with result 687050
2022-09-21 11:48:54 +02:00 --- debug: Done inner submit of model sample with result 489146
2022-09-21 11:48:54 +02:00 --- debug: Committing transaction.
It does show sensitivity [sensitivity_precision] => but it doesn't save the new value I entered in the form.
I hope this helps. As I mentioned, this used to work so I'm confused.
Thanks for your help, Alice