diff options
author | Malf Furious <m@lfurio.us> | 2018-09-19 18:06:24 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-09-19 18:06:24 -0400 |
commit | defac79722307d68191e9d28346a9fd8502319da (patch) | |
tree | 0bfc8393687e62c328387a72c0ea334ae120c9de /app | |
parent | e90ec83ac5f9327dcf055174002723b48948a679 (diff) | |
download | scrott-defac79722307d68191e9d28346a9fd8502319da.tar.gz scrott-defac79722307d68191e9d28346a9fd8502319da.zip |
datamods: Add default stages to new pads
As a convenience, I'm adding a basic set of stages to new pads. These
stages are "To Do", "In Progress" ('Done' being closed issues). This
implements a very simple workflow for new pads.
Diffstat (limited to 'app')
-rw-r--r-- | app/model/datamods.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/model/datamods.php b/app/model/datamods.php index b658314..8eaff23 100644 --- a/app/model/datamods.php +++ b/app/model/datamods.php @@ -17,6 +17,7 @@ require_once "class/agent.class.php"; require_once "class/user.class.php"; require_once "class/group.class.php"; require_once "class/pad.class.php"; +require_once "class/stage.class.php"; /* * Action: dm-group-add - New group modal @@ -54,6 +55,11 @@ if (isAction("dm-pad-add")) } $pad = pad::initNew($form->name, $owner); + $td = stage::initNew("To Do", $pad); + $ip = stage::initNew("In Progress", $pad); + + $pad->insertStage($td); + $td->insertStage($ip); } ?> |