diff options
| author | cash <cash.costello@gmail.com> | 2011-12-31 10:18:01 -0500 | 
|---|---|---|
| committer | cash <cash.costello@gmail.com> | 2011-12-31 10:18:01 -0500 | 
| commit | 6dc5a90146595b78f5fd0d9b10b628a78ca2dac7 (patch) | |
| tree | fc90f62c0db6ed07f4a6a4622063e9b5439ce7b6 /mod | |
| parent | be12f79b9dd16202b774b4c42e07be395f00eff7 (diff) | |
| download | elgg-6dc5a90146595b78f5fd0d9b10b628a78ca2dac7.tar.gz elgg-6dc5a90146595b78f5fd0d9b10b628a78ca2dac7.tar.bz2  | |
Fixes #4256 reruns the forum topic upgrade by checking the 5 oldest topics
Diffstat (limited to 'mod')
| -rw-r--r-- | mod/groups/upgrades/2011030101.php | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/groups/upgrades/2011030101.php b/mod/groups/upgrades/2011030101.php index 9ed5b321b..55edb1a16 100644 --- a/mod/groups/upgrades/2011030101.php +++ b/mod/groups/upgrades/2011030101.php @@ -9,6 +9,7 @@ $topics = elgg_get_entities(array(  	'type' => 'object',  	'subtype' => 'groupforumtopic',  	'limit' => 5, +	'order_by' => 'e.time_created asc',  ));  // if not topics, no upgrade required @@ -31,6 +32,11 @@ foreach ($topics as $topic) {   */  function groups_2011030101($topic) { +	// do not upgrade topics that have already been upgraded +	if ($topic->description) { +		return true; +	} +  	$annotation = $topic->getAnnotations('group_topic_post', 1);  	if (!$annotation) {  		// no text for this forum post so we delete (probably caused by #2624)  | 
