From e16259313dfac9729c35a90c5f326e4468ba0552 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 29 Sep 2011 22:31:49 +0800 Subject: [PATCH] NotifyAction.php --- NotifyAction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NotifyAction.php b/NotifyAction.php index 7ec24624..ffd385c9 100644 --- a/NotifyAction.php +++ b/NotifyAction.php @@ -47,11 +47,11 @@ class Pman_Core_NotifyAction extends Pman $n->person_id = $this->authUser->id; // in theory in workflow, this could trigger another action... // if watch is on it.. - foreach(array('on_table','on_id','action') as $k) { + foreach(array('ontable','onid','action') as $k) { if (empty($_POST[$k])) { $this->jerr("missing argument $k"); } - if ($k == 'on_id') { + if ($k == 'onid') { continue; } $n->$k = $_POST[$k]; @@ -59,7 +59,7 @@ class Pman_Core_NotifyAction extends Pman $n->whereAdd('sent < act_when'); // not issued yet.. $n->whereAdd("join_watch_id_id.medium = '". $n->escape($n->action) ."'"); - $n->whereAddIn('core_notify.on_id', explode(',', $_POST['on_id']), 'int' ); + $n->whereAddIn('core_notify.onid', explode(',', $_POST['onid']), 'int' ); $n->autoJoin(); $ar = $n->fetchAll(); -- 2.39.2