summaryrefslogtreecommitdiffstats
path: root/app/model/datamods.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/model/datamods.php')
-rw-r--r--app/model/datamods.php6
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);
}
?>