Support » Plugin: Church Admin » Edit Small Groups

  • Resolved Gustavo Viegas

    (@gustavorviegas)


    First I want to congratulate the great work …

    I’m having trouble editing the leaders of small groups.

    I only get when I’m adding members, put him as leader of a new group.

    But to go in managing small groups I visualize the leaders, but when I edit the group the field does not appear ..

    I tried to check in the file small_groups.php and could not the solution …

    The problem seems to be in line ..

    if($leaders)
    	    {//leaders available
    		$curr_leaders=unserialize($data->leader);
    		echo'<p><label>'.__('Leader','church-admin').'</label>';
    		echo'<select name="leader1">';
    		foreach($leaders AS $leader)
    		{
    		    echo'<option value="'.$leader->people_id.'" ';
    		    selected($curr_leaders[1],$leader->people_id);
    		    echo' >'.$leader->leader.'</option>';
    		}
    		echo'</select></p>';
    		echo'<p><label>Leader</label>';
    		echo'<select name="leader2">';
    		echo'<option value="">'.__('Second Leader','church-admin').'</option>';
    		foreach($leaders AS $leader)
    		{
    		    echo'<option value="'.$leader->people_id.'" ';
    		    selected($curr_leaders[2],$leader->people_id);
    		    echo' >'.$leader->leader.'</option>';
    		}
    		echo'</select></p>';
    	    }//leaders available

    Grateful for a solution …

    hug

    http://wordpress.org/extend/plugins/church-admin/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Edit Small Groups’ is closed to new replies.