diff --git a/module/program/model.php b/module/program/model.php
index d356a89903..f6556906bf 100644
--- a/module/program/model.php
+++ b/module/program/model.php
@@ -125,7 +125,6 @@ class programModel extends model
->setIF($this->post->budget != 0, 'budget', number_format($this->post->budget, 2))
->add('type', 'program')
->join('whitelist', ',')
- ->cleanFloat('budget')
->stripTags($this->config->program->editor->pgmcreate['id'], $this->config->allowedTags)
->remove('delta,future')
->get();
@@ -1215,7 +1214,6 @@ class programModel extends model
->setDefault('team', substr($this->post->name, 0, 30))
->add('type', 'project')
->join('whitelist', ',')
- ->cleanFloat('budget')
->stripTags($this->config->program->editor->prjcreate['id'], $this->config->allowedTags)
->remove('products,branch,plans,delta,newProduct,productName,future')
->get();
@@ -1384,9 +1382,11 @@ class programModel extends model
->setIF($this->post->begin == '0000-00-00', 'begin', '')
->setIF($this->post->end == '0000-00-00', 'end', '')
->setIF($this->post->acl == 'open', 'whitelist', '')
+ ->setIF($this->post->future, 'budget', 0)
+ ->setIF($this->post->budget != 0, 'budget', number_format($this->post->budget, 2))
->join('whitelist', ',')
->stripTags($this->config->program->editor->prjedit['id'], $this->config->allowedTags)
- ->remove('products,branch,plans,delta')
+ ->remove('products,branch,plans,delta,future')
->get();
if($project->parent)
diff --git a/module/program/view/prjedit.html.php b/module/program/view/prjedit.html.php
index 75ec5c1b07..3429a44337 100644
--- a/module/program/view/prjedit.html.php
+++ b/module/program/view/prjedit.html.php
@@ -38,55 +38,12 @@
program->PRJName;?> |
name, "class='form-control' required");?> | | |
-
- | program->PRJCode;?> |
- code, "class='form-control' required");?> | | |
-
model == 'waterfall'):?>
| program->PRJCategory;?> |
program->PRJCategoryList, $project->product, "class='form-control'");?> | | |
-
- | project->manageProducts;?> |
-
-
-
-
-
- type != 'normal' and isset($branchGroups[$product->id]);?>
-
- id, "class='form-control chosen' data-placeholder={$lang->program->errorNoProducts} onchange='loadBranches(this)' data-last='" . $product->id . "'");?>
-
- id], $product->branch, "class='form-control chosen' onchange=\"loadPlans('#products{$i}', this.value)\"");?>
-
-
-
-
-
-
- |
-
-
- | project->linkPlan;?> |
-
-
-
-
- id, array(0 => ''));?>
- id . "]", $plans, $product->plan, "class='form-control chosen'");?>
-
-
-
-
- |
-
| program->PRJPM;?> |
PM, "class='form-control chosen'" . (strpos($requiredFields, 'PM') !== false ? ' required' : ''));?> |
@@ -95,12 +52,17 @@
program->PRJBudget;?> |
- budget ? $project->budget : '', "class='form-control'" . (strpos($requiredFields, 'budget') !== false ? ' required' : ''));?>
+ budget != 0 ? $project->budget : '', "class='form-control'" . (strpos($requiredFields, 'budget') !== false ? ' required' : '') . ($project->budget == 0 ? 'disabled' : ''));?>
program->unitList, $project->budgetUnit, "class='form-control'");?>
|
- |
+
+
+ budget == 0) echo 'checked';?> />
+
+
+ |
| program->dateRange;?> |
@@ -131,6 +93,45 @@
|
+
+ | project->manageProducts;?> |
+
+
+
+
+
+ type != 'normal' and isset($branchGroups[$product->id]);?>
+
+ id, "class='form-control chosen' data-placeholder={$lang->program->errorNoProducts} onchange='loadBranches(this)' data-last='" . $product->id . "'");?>
+
+ id], $product->branch, "class='form-control chosen' onchange=\"loadPlans('#products{$i}', this.value)\"");?>
+
+
+
+
+
+
+ |
+
+
+ | project->linkPlan;?> |
+
+
+
+
+ id, array(0 => ''));?>
+ id . "]", $plans, $product->plan, "class='form-control chosen'");?>
+
+
+
+
+ |
+
| program->PRJStoryConcept;?> |
@@ -140,14 +141,9 @@
|
| program->PRJDesc;?> |
- fetch('user', 'ajaxPrintTemplates', 'type=project&link=desc');?>
desc, "rows='6' class='form-control kindeditor' hidefocus='true'" . (strpos($requiredFields, 'desc') !== false ? ' required' : ''));?>
|
-
- | program->auth;?> |
- program->PRJAuthList, $project->auth, '', 'block');?> |
-
| project->acl;?> |
acl, "onclick='setWhite(this.value);'", 'block'));?> |
@@ -158,6 +154,10 @@
|
|
+
+ | program->auth;?> |
+ program->PRJAuthList, $project->auth, '', 'block');?> |
+
|
|