* when save a action, str to lower.

This commit is contained in:
wangchunsheng
2010-04-11 08:20:21 +00:00
parent f2d8a5ab9b
commit 46fb7fd12f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ $config->action->objectTables['testtask'] = TABLE_TESTTASK;
$config->action->objectNameFields['company'] = 'name';
$config->action->objectNameFields['product'] = 'name';
$config->action->objectNameFields['story'] = 'title';
$config->action->objectNameFields['productplan'] = 'name';
$config->action->objectNameFields['productplan'] = 'title';
$config->action->objectNameFields['release'] = 'name';
$config->action->objectNameFields['project'] = 'name';
$config->action->objectNameFields['task'] = 'title';
+2 -2
View File
@@ -31,10 +31,10 @@ class actionModel extends model
/* 创建一条action动作。*/
public function create($objectType, $objectID, $actionType, $comment = '', $extra = '')
{
$action->objectType = $objectType;
$action->objectType = strtolower($objectType);
$action->objectID = $objectID;
$action->actor = $this->app->user->account;
$action->action = $actionType;
$action->action = strtolower($actionType);
$action->date = helper::now();
$action->comment = htmlspecialchars($comment);
$action->extra = $extra;