Files
TimeTracker/tests
Dries Peeters 09dd042209 fix: project description not saving on edit
Fixed a critical bug where changes to project descriptions were not
being persisted when editing projects via Work > Projects > Edit Project.

The issue was caused by an incorrect CSS selector pattern in the form
submit handler that syncs the markdown editor content. The selector
`form[action*="projects/edit"]` failed to match URLs like
`/projects/123/edit` because the project ID breaks the substring match.

Changes:
- Updated form selector to use more generic pattern: `form[action*="/edit"]`
- Added explicit null checking with `if (form)` guard
- Enhanced error logging with console.error for debugging
- Improved code formatting and structure

Testing:
- Added integration test: test_edit_project_description
- Added smoke test: test_project_edit_page_has_markdown_editor
- All 166 project-related tests pass successfully
- No regressions introduced
2025-10-29 09:05:53 +01:00
..
2025-10-24 18:16:15 +02:00
2025-10-27 17:46:50 +01:00
2025-10-27 17:46:50 +01:00
2025-10-27 17:46:50 +01:00
2025-10-10 14:02:28 +02:00
2025-10-20 21:25:13 +02:00
2025-10-27 17:46:50 +01:00
2025-10-20 21:25:13 +02:00
2025-10-22 11:25:10 +02:00
2025-10-25 08:38:53 +02:00
2025-10-25 08:38:53 +02:00
2025-10-27 17:46:50 +01:00
2025-10-27 17:46:50 +01:00
2025-10-24 15:14:39 +02:00
2025-10-23 14:00:53 +02:00
2025-10-24 18:16:15 +02:00
2025-10-24 18:16:15 +02:00
2025-10-20 21:25:13 +02:00
2025-10-24 16:53:30 +02:00
2025-10-24 15:03:34 +02:00
2025-10-24 15:14:39 +02:00