]> wagnertech.de Git - timetracker.git/commitdiff
Work in progress on mking project selection for some teams optional and this mode...
authoranuko <support@anuko.com>
Sun, 9 Jul 2017 21:57:02 +0000 (21:57 +0000)
committeranuko <support@anuko.com>
Sun, 9 Jul 2017 21:57:02 +0000 (21:57 +0000)
WEB-INF/templates/footer.tpl
dbinstall.php
mysql.sql

index e053ebcef79d975a5e13334f07d56baf3547b369..aaf7f18ebdd9f5d03dd720dca7f1e2d22a04bcce 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.11.44.3637 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.11.44.3638 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index b5bff5e834a4d1c57b25af54bb3ffe6db77f4914..aea76e80f5de9bf5eb84b818d41758d7be1e4aa4 100755 (executable)
@@ -637,6 +637,7 @@ if ($_POST) {
     setChange("ALTER TABLE `tt_teams` ADD `uncompleted_indicators` SMALLINT(2) NOT NULL DEFAULT '0' AFTER `record_type`");
     setChange("CREATE TABLE `tt_predefined_expenses` (`id` int(11) NOT NULL auto_increment, `team_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `cost` decimal(10,2) default '0.00', PRIMARY KEY  (`id`))");
     setChange("ALTER TABLE `tt_teams` ADD `task_required` smallint(2) NOT NULL DEFAULT '0' AFTER `tracking_mode`");
+    setChange("ALTER TABLE `tt_teams` ADD `project_required` smallint(2) NOT NULL DEFAULT '0' AFTER `tracking_mode`");
   }
   
   // The update_clients function updates projects field in tt_clients table.
index 54bd90d34e7e9ef2208ce89607d992c20d2c253d..a9a88f64f9f15ed01d67c232d68856044c25fdfc 100644 (file)
--- a/mysql.sql
+++ b/mysql.sql
@@ -24,6 +24,7 @@ CREATE TABLE `tt_teams` (
   `time_format` varchar(20) NOT NULL default '%H:%M',        # time format
   `week_start` smallint(2) NOT NULL DEFAULT '0',             # Week start day, 0 == Sunday.
   `tracking_mode` smallint(2) NOT NULL DEFAULT '1',          # tracking mode ("time", "projects" or "projects and tasks")
+  `project_required` smallint(2) NOT NULL DEFAULT '0',       # whether a project selection is required or optional
   `task_required` smallint(2) NOT NULL DEFAULT '0',          # whether a task selection is required or optional
   `record_type` smallint(2) NOT NULL DEFAULT '0',            # time record type ("start and finish", "duration", or both)
   `uncompleted_indicators` smallint(2) NOT NULL DEFAULT '0', # whether to show indicators for users with uncompleted time entries