Skip to content

Commit

Permalink
Fix issues from PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Dec 30, 2017
1 parent d955ef6 commit ffcf9a9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bug_monitor_add.php
Expand Up @@ -47,7 +47,7 @@
$t_data = array( 'issue_id' => $f_bug_id );

if( is_blank( $f_usernames ) ) {
$t_data['users'] = array( array( 'id' => $t_logged_in_user_id ) );
$t_data['users'] = array( array( 'id' => auth_get_current_user_id() ) );
} else {
$t_usernames = preg_split( '/[,|]/', $f_usernames, -1, PREG_SPLIT_NO_EMPTY );
$t_users = array();
Expand Down
5 changes: 0 additions & 5 deletions core/commands/MonitorAddCommand.php
Expand Up @@ -31,11 +31,6 @@ class MonitorAddCommand extends Command {
*/
private $projectId;

/**
* @var integer
*/
private $loggedInUserId;

/**
* @var array array of user ids to add to monitor list of the issue
*/
Expand Down
2 changes: 1 addition & 1 deletion core/constant_inc.php
Expand Up @@ -314,7 +314,7 @@
define( 'ERROR_USER_CURRENT_PASSWORD_MISMATCH', 812 );
define( 'ERROR_USER_EMAIL_NOT_UNIQUE', 813 );
define( 'ERROR_USER_BY_EMAIL_NOT_FOUND', 814 );
define( 'ERROR_USER_BY_REALNAME_NOT_FOUND', 814 );
define( 'ERROR_USER_BY_REALNAME_NOT_FOUND', 815 );

# ERROR_AUTH_*
define( 'ERROR_AUTH_INVALID_COOKIE', 900 );
Expand Down

0 comments on commit ffcf9a9

Please sign in to comment.