cfmgrv3 init...3
This commit is contained in:
parent
e68d1d17c4
commit
e4918c900d
@ -177,7 +177,7 @@ class CommonController extends BaseController
|
||||
$this->_viewDatas['fieldDatas'] = array();
|
||||
foreach ($this->_viewDatas['fields'] as $field) {
|
||||
$this->_viewDatas['fieldDatas'][$field] = rtrim($this->request->getVar($field));
|
||||
$log = "{$entity->getTitle()}의 {$field} : {$entity->$field}=>{$this->_viewDatas['fieldDatas'][$field]}";
|
||||
$log = "{$field} : {$entity->$field} => {$this->_viewDatas['fieldDatas'][$field]}";
|
||||
//암호는 보안상 log에 남지 않게하기 위함
|
||||
if ($field != 'passwd') {
|
||||
Log::add("info", $log);
|
||||
@ -189,7 +189,7 @@ class CommonController extends BaseController
|
||||
}
|
||||
// throw new \Exception(var_export($this->_viewDatas['fieldDatas'], true));
|
||||
if (!$entity->hasChanged()) {
|
||||
throw new \Exception("새로 변경된 값이 없습니다." . var_export($logs, true));
|
||||
throw new \Exception("새로 변경된 값이 없습니다.\n<br>" . implode("\n<br>", $logs));
|
||||
}
|
||||
//변경할 값 확인
|
||||
if (!$this->validate($this->_viewDatas['fieldRules'])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user