From db7ad4f8943625e5c79fc09dae94a865f655493d Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 8 Apr 2017 02:36:07 -0400 Subject: 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. --- app/class/stage.class.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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; } -- cgit v1.2.3