diff options
author | Kevin Chabowski <kevin@kch42.de> | 2011-11-09 18:10:44 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2011-11-09 18:10:44 +0100 |
commit | fd206c2424cf1eb92dcbf7cab064942b9a904720 (patch) | |
tree | 3bc0318c13a42c6ef424f6901a7bd6902ff03ecb | |
parent | 2d7eb3b97eb802f700965cc88a9b049687e8abf0 (diff) | |
download | ratatoeskr-cms-fd206c2424cf1eb92dcbf7cab064942b9a904720.tar.gz ratatoeskr-cms-fd206c2424cf1eb92dcbf7cab064942b9a904720.tar.bz2 ratatoeskr-cms-fd206c2424cf1eb92dcbf7cab064942b9a904720.zip |
Article::save also saves all $tags now.
-rw-r--r-- | ratatoeskr/sys/models.php | 2 |
1 files changed, 2 insertions, 0 deletions
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); |