Skip to content

Commit

Permalink
Merge branch 'master-2.21'
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed Apr 30, 2019
2 parents a651358 + 78b3a4f commit c7ab5c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/project_api.php
Expand Up @@ -812,9 +812,9 @@ function project_add_users( $p_project_id, array $p_changes ) {
$t_updating = array_column( $t_query->fetch_all(), 'user_id' );

if( !empty( $t_updating ) ) {
$t_update = new DbQuery( 'UPDATE {project_user_list} SET access_level = :new_value WHERE user_id = :user_id' );
$t_update = new DbQuery( 'UPDATE {project_user_list} SET access_level = :new_value WHERE user_id = :user_id AND project_id = :project_id' );
foreach( $t_updating as $t_id ) {
$t_params = array( 'user_id' => (int)$t_id, 'new_value' => $t_changes[$t_id] );
$t_params = array( 'project_id' => $t_project_id, 'user_id' => (int)$t_id, 'new_value' => $t_changes[$t_id] );
$t_update->execute( $t_params );
unset( $t_changes[$t_id] );
}
Expand Down

0 comments on commit c7ab5c6

Please sign in to comment.