Skip to content

Set modified when creating QR code for box#804

Merged
HaGuesto merged 1 commit intomasterfrom
set-modified-when-creating-qr-for-box
Mar 23, 2026
Merged

Set modified when creating QR code for box#804
HaGuesto merged 1 commit intomasterfrom
set-modified-when-creating-qr-for-box

Conversation

@pylipp
Copy link
Copy Markdown
Contributor

@pylipp pylipp commented Dec 17, 2025

[$id, $hash] = generateQRIDForDB();

if ($labels[$i]) {
db_query('UPDATE stock SET qr_id = :qr_id WHERE id = :id', ['id' => $labels[$i], 'qr_id' => $id]);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pylipp could we change it that the now timestamp matches the now timestamp in the history message?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a refactoring of the simpleBulkSaveChangeHistory function, I'd move it to a separate PR.
Because this function is used in four places, most with UPDATE modified = NOW() before.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HaGuesto HaGuesto merged commit 805a24c into master Mar 23, 2026
1 check passed
pylipp added a commit that referenced this pull request Mar 24, 2026
Follow-up for #804 and #814
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.

2 participants