notifications
This commit is contained in:
@@ -282,8 +282,10 @@ long WrenchSuggestTaskStatus(CVars in, CVars &out){
|
|||||||
out["status_msg"] = "family_suggest_reminder_sent";
|
out["status_msg"] = "family_suggest_reminder_sent";
|
||||||
ret = PHP_API_OK;
|
ret = PHP_API_OK;
|
||||||
|
|
||||||
if ( load_db_record(xy, "SELECT id AS member_id, uid AS member_uid, 'message.svg' AS icon "
|
if ( load_db_record(xy, "SELECT m.id AS member_id, m.uid AS member_uid "
|
||||||
" FROM members WHERE id = %lu ",rec2["member_id"].Long()) > 0 ){
|
" FROM members_family f "
|
||||||
|
" LEFT JOIN members m ON m.id = f.member_id "
|
||||||
|
" WHERE f.family_member_id = %lu ",rec2["member_id"].Long()) > 0 ){
|
||||||
xy["msg"] = "You have received a suggested task reminder";
|
xy["msg"] = "You have received a suggested task reminder";
|
||||||
xy["msg"].set_valid(true);
|
xy["msg"].set_valid(true);
|
||||||
plan_notification(xy, xout);
|
plan_notification(xy, xout);
|
||||||
|
|||||||
Reference in New Issue
Block a user