minor fix on grid adapt

parent 58d50c8d
...@@ -43,7 +43,6 @@ BEGIN ...@@ -43,7 +43,6 @@ BEGIN
SELECT _attributes->>"$.id_cat" INTO _id_cat; SELECT _attributes->>"$.id_cat" INTO _id_cat;
END IF; END IF;
-- Pictogramas que estan en escenas sin categorias -- Pictogramas que estan en escenas sin categorias
IF (_free_category_coord_x IS NOT NULL) OR (_free_category_coord_y IS NOT NULL) THEN IF (_free_category_coord_x IS NOT NULL) OR (_free_category_coord_y IS NOT NULL) THEN
...@@ -51,7 +50,9 @@ BEGIN ...@@ -51,7 +50,9 @@ BEGIN
UPDATE stu_picto UPDATE stu_picto
SET SET
`attributes` = JSON_REPLACE(`attributes`, '$.coord_x', _free_category_coord_x), `attributes` = JSON_REPLACE(`attributes`, '$.coord_x', _free_category_coord_x),
`attributes` = JSON_REPLACE(`attributes`, '$.coord_y', _free_category_coord_y) `attributes` = JSON_REPLACE(`attributes`, '$.coord_y', _free_category_coord_y),
`attributes` = JSON_REPLACE(`attributes`, '$.free_category_coord_x', NULL),
`attributes` = JSON_REPLACE(`attributes`, '$.free_category_coord_y', NULL)
WHERE id = _id_stu_picto; WHERE id = _id_stu_picto;
-- Pictogramas que estan en escenas con categorias -- Pictogramas que estan en escenas con categorias
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment