In issue.inc, we have a function project_issue_state(). The function declaration includes a parameter $current_sid, however the phpdoc for the function does not mention this parameter.

**
 * Return information about project issue state values.
 *
 * @param $sid
 *   Integer state id to return information about, or 0 for all states.
 * @param $restrict
 *   Boolean to determine if states should be restricted based on the
 *   permissions of the current user.
 * @param $is_author
 *   Boolean that indicates if the current user is the author of the
 *   issue, which can potentially grant a wider selection of states.
 * @param $defaults
 *   Boolean to request the states used for default issue queries.
 *
 * @return
 *   An array of states (sid as key, name as value) that match the
 *   given filters, or the name of the requested state.
 */
function project_issue_state($sid = 0, $restrict = false, $is_author = false, $current_sid = 0, $defaults = false) {
CommentFileSizeAuthor
#1 project_issue_state_phpdoc_0.patch834 bytesaclight

Comments

aclight’s picture

Assigned: Unassigned » aclight
StatusFileSize
new834 bytes

Hm....I could have sworn I attached the patch...

dww’s picture

Status: Needs review » Fixed

Committed to HEAD and DRUPAL-5. Thanks!

dww’s picture

Component: Issues » Documentation
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.