s4

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 diff
     1.1 --- a/s4-funcs.sh	Sun Jul 26 12:28:38 2015 +0900
     1.2 +++ b/s4-funcs.sh	Mon Jul 27 09:56:12 2015 +0900
     1.3 @@ -39,7 +39,7 @@
     1.4  
     1.5      資料配布、グループ管理・ML、ファイル交換、クリッカー、アンケート
     1.6      レポート提出管理
     1.7 -グループへの一斉送信機能は付いたが表に出てない(7/6)
     1.8 +○グループへの一斉送信機能は付いたが表に出てない(7/6)
     1.9  ひとつのarticleをheadingにして新規ツリーを作成、あるといいかも。
    1.10  
    1.11  7/19	○設置
    1.12 @@ -1068,8 +1068,10 @@
    1.13   # where a.val in (select name from user) limit 10000;"
    1.14        # tmp tmp tmp tmp tmp tmp tmp
    1.15        qgrp=`sqlquote "$e"`
    1.16 -      sql="select coalesce(s.val,g.user) from grp_mem g left join grp_mem_s s
    1.17 +      sql="select coalesce(s.val,um.val,g.user) from
    1.18 +	 grp_mem g left join grp_mem_s s
    1.19  	 on g.gname=s.gname and g.user=s.user and s.key='email'
    1.20 +	 left join user_m um on g.user=um.name and um.key='email'
    1.21  	 where g.gname=$qgrp;"
    1.22        err CollectEmail: `echo "$sql"`
    1.23        query "$sql"