* finish task #4523.
This commit is contained in:
@@ -214,6 +214,7 @@ class product extends control
|
||||
}
|
||||
|
||||
$rootID = key($this->products);
|
||||
if($this->session->product) $rootID = $this->session->product;
|
||||
$this->product->setMenu($this->products, $rootID);
|
||||
|
||||
$this->view->title = $this->lang->product->create;
|
||||
|
||||
@@ -352,11 +352,11 @@ class productModel extends model
|
||||
public function create()
|
||||
{
|
||||
$product = fixer::input('post')
|
||||
->setIF($this->post->acl != 'custom', 'whitelist', '')
|
||||
->setDefault('status', 'normal')
|
||||
->setDefault('createdBy', $this->app->user->account)
|
||||
->setDefault('createdDate', helper::now())
|
||||
->setDefault('createdVersion', $this->config->version)
|
||||
->setIF($this->post->acl != 'custom', 'whitelist', '')
|
||||
->setDefault('status', 'normal')
|
||||
->setDefault('createdBy', $this->app->user->account)
|
||||
->setDefault('createdDate', helper::now())
|
||||
->setDefault('createdVersion', $this->config->version)
|
||||
->join('whitelist', ',')
|
||||
->stripTags($this->config->product->editor->create['id'], $this->config->allowedTags)
|
||||
->remove('uid')
|
||||
|
||||
Reference in New Issue
Block a user