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;