return;
}
$m = DB_DataObject::factory('mtrack_milestone');
- if (!$m->get($pi) || $m->project_id != $this->currentProject()) {
+ if (!$m->get($this->id) || $m->project_id != $this->currentProject()) {
$this->jerr("invalid milestone id");
}
}
- if ($m->id && !$m->hasPerm('MTrack.Issue','E') ) {
+ if ($m->id && !$this->hasPerm('MTrack.Issue','E') ) {
$this->jerr('Permission denied = no rights to edit milestones', array('noperm' => true));
return HTML_FlexyFramework::run('Noperm');
}