Files
TimeTracker/templates
Dries Peeters 4cd05bb82a Fix company logo not visible in invoice template editor
The company logo was visible in the preview but not in the editor when
loading saved invoice templates. This was caused by Konva Image nodes
losing their image data after JSON deserialization.

Changes:
- Enhanced logo detection to use multiple methods (className, constructor,
  instanceof) for robustness after deserialization
- Check all Image nodes, not just those with name='logo', in case the
  name attribute is lost during serialization
- Detect Image nodes that should be logos (have dimensions but no image data)
- Improved error handling and logging for debugging
- Applied fix to both invoice and quote PDF layout templates

The logo images are now properly restored from LOGO_URL when loading
saved designs, making them visible in the editor as well as the preview.
2025-12-29 14:12:20 +01:00
..