php - Task Completion Notification Alert within a template -
if ($this->id == null , ($this->status_id == '62' or $this->status_id = '63')) { $notify_url = route::get('applications')->uri(array('controller' => 'calibration', 'action' => 'details', 'id' => $this->id)); notify::create(kohana::$config->load('tip.top'), 'calibration', $this->id.': '.$this->description, route::get('applications')->uri(array('controller' => 'calibration', 'action' => 'details', 'id' => $this->id)) ); }
hi,
i have code should send me notification when the id of record not null , status of record not "in progress" , status of record "complete", should send me notification then.
it sends me notifications complete opposite. when refresh blank record & when add record, when status "in progress" send notifications
any would,d appreciated.
your conditions wrong:
$this->id == null => when null , "..when the id of record is not null..."
due instructions conditional be:
if ($this->id != null , ($this->status_id == '62' or $this->status_id = '63'))
regards.
Comments
Post a Comment