summaryrefslogtreecommitdiffstats
path: root/app/class/table.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-14 20:50:24 -0400
committerMalf Furious <m@lfurio.us>2017-04-14 21:01:27 -0400
commit453a2fc20886fa25b94017c1cccdbd05456a2d60 (patch)
tree20ddd877af5be3e8e4cc1904e2b0c14683ccfcff /app/class/table.class.php
parent025a34dbd54a0886d766f386792310e5f6bfe701 (diff)
downloadscrott-453a2fc20886fa25b94017c1cccdbd05456a2d60.tar.gz
scrott-453a2fc20886fa25b94017c1cccdbd05456a2d60.zip
Fix bug in table function saveObj()
Added call to refreshObj() to the end of function saveObj() to fetch all default values defined by the database, not set on the object in PHP.
Diffstat (limited to 'app/class/table.class.php')
-rw-r--r--app/class/table.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/class/table.class.php b/app/class/table.class.php
index ac21aaf..52a3e7d 100644
--- a/app/class/table.class.php
+++ b/app/class/table.class.php
@@ -142,6 +142,8 @@ abstract class table
database::query($query);
}
}
+
+ $this->refreshObj(); // fetch default, unset values from database
}
}