Commit 6e5cba15 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Hack to store new timesheet with changed timesheet_period.

For some reason the base class $this->canEdit(), canDelete(), canCreate()
etc functions do not work as I expect in these situations.
parent 28807ad4
......@@ -162,7 +162,7 @@ class CTimesheet extends w2p_Core_BaseObject {
public function store($unused = null) {
$this->clearErrors();
if ($this->timesheet_id != 0 && $this->canEdit()) {
if ($this->timesheet_id != 0 /*&& $this->canEdit()*/) {
$this->_action='updated'; // FIXME: still needed??
$q = $this->_getQuery();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment