Don't use MY_ORM::original() here since the values may not have

changed since the last save.  Instead, use the original ORM passed in.
This commit is contained in:
Bharat Mediratta
2010-01-16 00:10:55 -08:00
parent 00c73a4b07
commit 9f03d36d6e
3 changed files with 11 additions and 7 deletions
@@ -7,7 +7,7 @@
<h2> <?= html::clean($subject) ?> </h2>
<table>
<tr>
<? if ($item->original("title") != $item->title): ?>
<? if ($original->title != $item->title): ?>
<td><?= t("New title:") ?></td>
<td><?= html::clean($item->title) ?></td>
<? else: ?>
@@ -19,7 +19,7 @@
<td><?= t("Url:") ?></td>
<td><a href="<?= $item->abs_url() ?>"><?= $item->abs_url() ?></a></td>
</tr>
<? if ($item->original("description") != $item->description): ?>
<? if ($original->description != $item->description): ?>
<tr>
<td><?= t("New description:") ?></td>
<td><?= html::clean($item->description) ?></td>