+ complete task #312:add linkpruduct to createproject and editproject page.

This commit is contained in:
fujia
2010-11-17 08:15:11 +00:00
parent 2ad03cefc0
commit 0fa4af0743
4 changed files with 24 additions and 6 deletions

View File

@@ -88,6 +88,7 @@ class projectModel extends model
->specialChars('goal, desc')
->setIF($this->post->acl != 'custom', 'whitelist', '')
->join('whitelist', ',')
->remove('products')
->get();
$this->dao->insert(TABLE_PROJECT)->data($project)
->autoCheck($skipFields = 'begin,end')
@@ -124,6 +125,7 @@ class projectModel extends model
->setIF($this->post->end == '0000-00-00', 'end', '')
->setIF($this->post->acl != 'custom', 'whitelist', '')
->join('whitelist', ',')
->remove('products')
->get();
$this->dao->update(TABLE_PROJECT)->data($project)
->autoCheck($skipFields = 'begin,end')