? branch-logs ? cvs-update-list ? cvs.txt ? dif ? ifac_lock_3.patch ? patch ? project_comments_delete47_2.patch cvs diff: Diffing . Index: issue.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/issue.inc,v retrieving revision 1.255.2.5 diff -u -p -u -p -r1.255.2.5 issue.inc --- issue.inc 22 Oct 2007 05:01:43 -0000 1.255.2.5 +++ issue.inc 23 Oct 2007 21:23:03 -0000 @@ -1251,7 +1251,6 @@ function project_issue_query($project = '#type' => 'textfield', '#title' => t('Submitted by'), '#default_value' => $query->submitted, - '#autocomplete_path' => 'user/autocomplete', '#size' => 20, '#maxlength' => 255, ); @@ -1259,7 +1258,6 @@ function project_issue_query($project = '#type' => 'textfield', '#title' => t('Assigned'), '#default_value' => $query->assigned, - '#autocomplete_path' => 'user/autocomplete', '#size' => 20, '#maxlength' => 255, ); @@ -1267,10 +1265,17 @@ function project_issue_query($project = '#type' => 'textfield', '#title' => t('Participant'), '#default_value' => $query->users, - '#autocomplete_path' => 'user/autocomplete', '#size' => 20, '#maxlength' => 255, ); + if (user_access('access user profiles')) { + // Only enable auto-complete on these fields if the user can access the + // AJAX callback. + $form['submitted']['#autocomplete_path'] = 'user/autocomplete'; + $form['assigned']['#autocomplete_path'] = 'user/autocomplete'; + $form['participated']['#autocomplete_path'] = 'user/autocomplete'; + } + $form['submit'] = array( '#type' => 'button', '#value' => t('Search'), cvs diff: Diffing po