notifications
This commit is contained in:
@@ -282,8 +282,10 @@ long WrenchSuggestTaskStatus(CVars in, CVars &out){
|
||||
out["status_msg"] = "family_suggest_reminder_sent";
|
||||
ret = PHP_API_OK;
|
||||
|
||||
if ( load_db_record(xy, "SELECT id AS member_id, uid AS member_uid, 'message.svg' AS icon "
|
||||
" FROM members WHERE id = %lu ",rec2["member_id"].Long()) > 0 ){
|
||||
if ( load_db_record(xy, "SELECT m.id AS member_id, m.uid AS member_uid "
|
||||
" 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"].set_valid(true);
|
||||
plan_notification(xy, xout);
|
||||
|
||||
Reference in New Issue
Block a user