summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-08 02:36:07 -0400
committerMalf Furious <m@lfurio.us>2017-04-09 18:37:31 -0400
commitdb7ad4f8943625e5c79fc09dae94a865f655493d (patch)
tree6162060f2f80d4ceec8b6a53d9c238b3aca00c30
parent291b5a784e34099ece1839bf0bb3e8091c411576 (diff)
downloadscrott-db7ad4f8943625e5c79fc09dae94a865f655493d.tar.gz
scrott-db7ad4f8943625e5c79fc09dae94a865f655493d.zip
Fix bug in stage moveForward() function
Since this function is used by moveBackward(), failing to call $this->saveObj() would result in changes made to $this being lost. $this is now written back to the db every time and calling saveObj() manually when using moveBackward() can result in bad data being written to the db.
-rw-r--r--app/class/stage.class.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/class/stage.class.php b/app/class/stage.class.php
index 150ac5d..2616bee 100644
--- a/app/class/stage.class.php
+++ b/app/class/stage.class.php
@@ -116,6 +116,7 @@ class stage extends object
$next->saveObj();
$prev->saveObj();
+ $this->saveObj();
return true;
}