summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2011-02-01 08:29:21 +0100
committerGreg Aker <greg.aker@ellislab.com>2011-02-01 08:29:21 +0100
commit02b3a5b49ffc4226c1980e8186de43f9ead29a9a (patch)
treea525d220b9f959c5f62b47219ba736d2f61f13f7
parent0ecc06220733d180c181eb0133b10e66d509658c (diff)
Fixed a bug where the table class would not clear table data after calling generate().
-rw-r--r--system/libraries/Table.php3
-rw-r--r--user_guide/changelog.html12
2 files changed, 15 insertions, 0 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php
index 207ccc21d..cb2535ec8 100644
--- a/system/libraries/Table.php
+++ b/system/libraries/Table.php
@@ -367,6 +367,9 @@ class CI_Table {
$out .= $this->template['table_close'];
+ // Clear table class properties before generating the table
+ $this->clear();
+
return $out;
}
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 4fa27917f..39e6116a6 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -57,6 +57,18 @@ Change Log
<h1>Change Log</h1>
+<h2>Version 2.0.1</h2>
+<p>Release Date: not yet released</p>
+
+<h3>Bug Fixes for 2.0.1</h3>
+<ul>
+ <li>Libraries
+ <ul>
+ <li>Fixed a bug where the table class would not clear table data after calling generate().</li>
+ </ul>
+ </li>
+</ul>
+
<h2>Version 2.0.0</h2>
<p>Release Date: January 28, 2011<br />
Hg Tag: v2.0.0</p>