changeset 62:5ca8f194faf2

Collect emails for group give a preference to email values in user_m.
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 27 Jul 2015 09:56:12 +0900
parents 8b2cf4d9ba00
children da23cad20e4a
files s4-funcs.sh
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/s4-funcs.sh	Sun Jul 26 12:28:38 2015 +0900
+++ b/s4-funcs.sh	Mon Jul 27 09:56:12 2015 +0900
@@ -39,7 +39,7 @@
 
     資料配布、グループ管理・ML、ファイル交換、クリッカー、アンケート
     レポート提出管理
-グループへの一斉送信機能は付いたが表に出てない(7/6)
+○グループへの一斉送信機能は付いたが表に出てない(7/6)
 ひとつのarticleをheadingにして新規ツリーを作成、あるといいかも。
 
 7/19	○設置
@@ -1068,8 +1068,10 @@
  # where a.val in (select name from user) limit 10000;"
       # tmp tmp tmp tmp tmp tmp tmp
       qgrp=`sqlquote "$e"`
-      sql="select coalesce(s.val,g.user) from grp_mem g left join grp_mem_s s
+      sql="select coalesce(s.val,um.val,g.user) from
+	 grp_mem g left join grp_mem_s s
 	 on g.gname=s.gname and g.user=s.user and s.key='email'
+	 left join user_m um on g.user=um.name and um.key='email'
 	 where g.gname=$qgrp;"
       err CollectEmail: `echo "$sql"`
       query "$sql"

yatex.org