Post had to be saved again after create

This commit is contained in:
Parziphal 2013-11-03 12:17:11 -05:00
parent 64786741d7
commit c8ff2560ea

View File

@ -303,6 +303,7 @@ class Post extends Rails\ActiveRecord\Base
$this->commit_tags(); $this->commit_tags();
$sql = "UPDATE posts SET cached_tags = ? WHERE id = ?"; $sql = "UPDATE posts SET cached_tags = ? WHERE id = ?";
self::connection()->executeSql($sql, $this->cached_tags, $this->id); self::connection()->executeSql($sql, $this->cached_tags, $this->id);
$this->save();
} }
} }