diff options
author | Malf Furious <m@lfurio.us> | 2017-04-14 20:50:24 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-04-14 21:01:27 -0400 |
commit | 453a2fc20886fa25b94017c1cccdbd05456a2d60 (patch) | |
tree | 20ddd877af5be3e8e4cc1904e2b0c14683ccfcff /app/class | |
parent | 025a34dbd54a0886d766f386792310e5f6bfe701 (diff) | |
download | scrott-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')
-rw-r--r-- | app/class/table.class.php | 2 |
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 } } |