Index: trunk/kernel/include/itemdb.php
===================================================================
diff -u -N -r887 -r889
--- trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 887)
+++ trunk/kernel/include/itemdb.php (.../itemdb.php) (revision 889)
@@ -404,21 +404,14 @@
* @access private
*/
function DetectChanges($name, $value)
- {
- // Maris, don't try to create this method as universal
- // as possible, remove unneeded if statements here and
- // move them to those this class children's where they
- // are really needed.
-
+ {
global $objSession;
- //print_pre($_POST);
- //echo "$name: $value
";
- if ($this->Data[$name] != $value && !strstr($name, 'Modif') && !strstr($name, 'Created')) {
+
+ //echo "class: ".get_class($this)."
";
+ if ($this->Data[$name] != $value && $value != '') {
//echo "$name Modified tt ".$this->Data[$name]." tt $value
";
- if (!strstr($name, 'Hot') && !strstr($name, 'Pop') && !strstr($name, "Id") && !strstr($name, "ItemType")) {
- if ($objSession->GetVariable("HasChanges") != 1) {
- $objSession->SetVariable("HasChanges", 2);
- }
+ if ($objSession->GetVariable("HasChanges") != 1) {
+ $objSession->SetVariable("HasChanges", 2);
}
}
}