Same issue as #2579905: Flag access for new comments not working .

We check for:

    if (empty($entity_id) || !($node = $flag->fetch_entity($entity_id))) {

but earlier in the code we may have set the ID ourselves to 'new'.

Comments

joachim created an issue. See original summary.

sagar ramgade’s picture

Status: Active » Closed (duplicate)
sagar ramgade’s picture

Status: Closed (duplicate) » Needs review
StatusFileSize
new1.04 KB

It makes more sense to handle node here, patch attached.

Status: Needs review » Needs work

The last submitted patch, 3: flag-flag_access_for_new_nodes-2592429-3-D7.patch, failed testing.

ivnish’s picture

Status: Needs work » Closed (outdated)

Drupal 7 is EOL. Issue will be closed, but patches are still here