Skip to content

Commit

Permalink
BUGFIX: Fix order of publishing parents to make sure that filing does…
Browse files Browse the repository at this point in the history
…n't get affected
  • Loading branch information
nyeholt committed Mar 1, 2011
1 parent f9f0808 commit 560a722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/pages/NewsArticle.php
Expand Up @@ -100,7 +100,7 @@ public function onBeforeWrite()
/**
* Make sure all parents are published when publishing a news article
*/
public function onAfterPublish() {
public function onBeforePublish() {
// go through all parents that are news holders and publish them if they haven't been
$parent = $this->Parent();
while ($parent && $parent instanceof NewsHolder) {
Expand Down

0 comments on commit 560a722

Please sign in to comment.