BUG 9040 "The Task column doesn't update whith the last changes on..." SOLVED

- The APP_CACHE_VIEW table does not contain the changes made in the CONTENT table when you rename processes/tasks
- The name change in processes/tasks is now reflected in the APP_CACHE_VIEW table
- Note.- The APP_CACHE_VIEW table contains values ..for only one language
This commit is contained in:
Victor Saisa Lopez
2012-05-10 11:06:44 -04:00
parent c62f18b054
commit c4af5f8d23
5 changed files with 102 additions and 6 deletions

View File

@@ -0,0 +1,41 @@
CREATE TRIGGER CONTENT_UPDATE BEFORE UPDATE ON CONTENT
FOR EACH ROW
BEGIN
DECLARE str TEXT;
IF (NEW.CON_VALUE IS NULL) THEN
SET str = '';
ELSE
SET str = NEW.CON_VALUE;
END IF;
CASE (NEW.CON_CATEGORY)
WHEN 'APP_TITLE' THEN
BEGIN
UPDATE APP_CACHE_VIEW
SET APP_TITLE = str
WHERE APP_UID = NEW.CON_ID;
END;
WHEN 'PRO_TITLE' THEN
BEGIN
UPDATE APP_CACHE_VIEW
SET APP_PRO_TITLE = str
WHERE PRO_UID = NEW.CON_ID;
END;
WHEN 'TAS_TITLE' THEN
BEGIN
UPDATE APP_CACHE_VIEW
SET APP_TAS_TITLE = str
WHERE TAS_UID = NEW.CON_ID;
END;
ELSE
BEGIN
END;
END CASE;
END;