diff --git a/module/product/config.php b/module/product/config.php index b9573db2b5..d40990b01a 100644 --- a/module/product/config.php +++ b/module/product/config.php @@ -24,6 +24,7 @@ $config->product->search['fields']['pri'] = $lang->story->pri; $config->product->search['fields']['product'] = $lang->story->product; $config->product->search['fields']['branch'] = ''; $config->product->search['fields']['module'] = $lang->story->module; +$config->product->search['fields']['plan'] = $lang->story->plan; $config->product->search['fields']['estimate'] = $lang->story->estimate; $config->product->search['fields']['source'] = $lang->story->source; @@ -56,6 +57,7 @@ $config->product->search['params']['pri'] = array('operator' => '=', $config->product->search['params']['product'] = array('operator' => '=', 'control' => 'select', 'values' => ''); $config->product->search['params']['branch'] = array('operator' => '=', 'control' => 'select', 'values' => ''); $config->product->search['params']['module'] = array('operator' => 'belong', 'control' => 'select', 'values' => ''); +$config->product->search['params']['plan'] = array('operator' => '=', 'control' => 'select', 'values' => ''); $config->product->search['params']['estimate'] = array('operator' => '=', 'control' => 'input', 'values' => ''); $config->product->search['params']['source'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->story->sourceList); diff --git a/module/product/control.php b/module/product/control.php index 9dde00c267..dcf20ca7ed 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -245,6 +245,7 @@ class product extends control $this->lang->story->title = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->title); $this->lang->story->create = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->create); $this->config->product->search['fields']['title'] = $this->lang->story->title; + unset($this->config->product->search['fields']['plan']); } /* Build search form. */