From 975e158ebbea62e7ef23935480f18a2356639403 Mon Sep 17 00:00:00 2001 From: bernat Date: Wed, 13 Jan 2021 08:17:41 +0100 Subject: [PATCH] itemTag trigger --- db/changes/12270-wisemen/00-itemTag.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/changes/12270-wisemen/00-itemTag.sql b/db/changes/12270-wisemen/00-itemTag.sql index 9762314f5..f1e9370d5 100644 --- a/db/changes/12270-wisemen/00-itemTag.sql +++ b/db/changes/12270-wisemen/00-itemTag.sql @@ -11,7 +11,7 @@ trig: BEGIN DROP TEMPORARY TABLE IF EXISTS tmp.item; CREATE TEMPORARY TABLE tmp.item - SELECT vItem id; + SELECT NEW.itemFk id; CALL item_refreshTags(); DROP TEMPORARY TABLE tmp.item;