Fixed showing username in empty workflowitems
This commit is contained in:
@@ -17,6 +17,14 @@ class Workflowvalue extends mfBaseModel {
|
||||
}
|
||||
}
|
||||
|
||||
protected function beforeSave() {
|
||||
if($this->new() == "new") {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
$this->changed = date('U');
|
||||
$this->changed_by = $me->id;
|
||||
}
|
||||
}
|
||||
|
||||
public function setValue($value) {
|
||||
$this->item = $this->getProperty("item");
|
||||
@@ -103,10 +111,10 @@ class Workflowvalue extends mfBaseModel {
|
||||
$this->changed_by = $me->id;
|
||||
}
|
||||
|
||||
if($this->new() == "new") {
|
||||
/*if($this->new() == "new") {
|
||||
$this->changed = date('U');
|
||||
$this->changed_by = $me->id;
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -26,13 +26,6 @@ class WorkflowvalueModel {
|
||||
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
|
||||
if($model->changed === null) {
|
||||
$model->changed = date('U');
|
||||
}
|
||||
if($model->changed_by === null) {
|
||||
$model->changed_by = $me->id;
|
||||
}
|
||||
|
||||
if($model->create_by === null) {
|
||||
$model->create_by = $me->id;
|
||||
|
||||
Reference in New Issue
Block a user