Skip to content

Fix null sort order error and date drift on Animal Group Management Interface#954

Open
jallentxbiomed wants to merge 3 commits into
release26.3-SNAPSHOTfrom
26.3_fb_fixNullSortOrderErrorOnAnimalGroupManagement
Open

Fix null sort order error and date drift on Animal Group Management Interface#954
jallentxbiomed wants to merge 3 commits into
release26.3-SNAPSHOTfrom
26.3_fb_fixNullSortOrderErrorOnAnimalGroupManagement

Conversation

@jallentxbiomed

Copy link
Copy Markdown
Collaborator

Fixes two bugs on the Animal Groups data-entry form (animalGroupCategories):

  1. "Update failed: Unable to convert value 'null' to Integer" when saving a row with a blank Sort Order
  • AnimalGroupsController.UpdateGroupsAction was passing the JSON null sentinel straight to the row map. Guarded sort_order with o.isNull("sortOrder") so a blank field is sent as a real SQL null (the column is nullable).
  1. Start/End date drifting back one day on every edit (timezone round-trip)
    This needed a coordinated server + client change; neither half fixes it alone:
  • Server (AnimalGroup.toJSON): format date and endDate with DateUtil.formatIsoDate(...) so the payload carries a bare Y-m-d string instead of a zoned datetime.
  • Client (AnimalGroupsStore.js): added dateReadFormat: 'Y-m-d' to the date and endDate fields so ExtJS parses that string as a local date rather than UTC midnight (which shifted it to the prior day in Central time).

@jallentxbiomed jallentxbiomed self-assigned this Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant