fix for #4009: set is_publishdate=1 if immediately published

This commit is contained in:
following
2012-08-08 20:45:20 +02:00
parent 386196bbef
commit f1a9818dbc
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -407,6 +407,9 @@
SET NEW.`date_created`=NOW();
SET NEW.`last_modified`=NOW();
END IF;
IF NEW.`status` <> 5 THEN
SET NEW.`is_publishdate`=1;
END IF;
SET NEW.`need_npa_recalc`=1;
END;");