From fd206c2424cf1eb92dcbf7cab064942b9a904720 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Wed, 9 Nov 2011 18:10:44 +0100 Subject: Article::save also saves all $tags now. --- ratatoeskr/sys/models.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index 627fa89..bfdc442 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -1911,6 +1911,8 @@ class Article $this->title->save(); $this->text->save(); $this->excerpt->save(); + foreach($this->tags as $tag) + $tag->save(); qdb("DELETE FROM `PREFIX_article_tag_relations` WHERE `article`= %d", $this->id); -- cgit v1.2.3-70-g09d2