Skip to content
Snippets Groups Projects

Fix for load_user function in modules/Users/Users.php

Closed its4you requested to merge its4you/vtigercrm:fix_for_load_user into master

Second parameter $dieOnError for requireSingleResult() function is wrong.

in modules/Users/Users.php there was thsi code:

$query = "SELECT * from $this->table_name where user_name=?";

$result =

this>db>requireSingleResult(this->db->requireSingleResult(
query, array($usr_name), false);

In include/database/pearDatabase.php the function requireSingleResult()is defined as:

function requireSingleResult($sql,

dieOnError=false,dieOnError=false,
msg='', $encode=true)

Merge request reports

Closed by avatar (Apr 3, 2025 11:09am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply
Loading