Multiple Approvers – FIX
-
There is an issue with this plugin which prevents approvals from registering when you have set up multiple approver feeds. To fix, you’ll need to edit class-gf-approvals.php, swapping out lines 278-290 with the following:
foreach ( $this->get_feeds( $form['id'] ) as $feed ) { if ( $feed['is_active'] && $this->is_feed_condition_met( $feed, $form, $entry ) ) { foreach ( $feed['meta']['approver'] as $approver ) { if ( ! empty( $entry[ 'approval_status_' . $approver ] ) ) { if ( $entry[ 'approval_status_' . $approver ] == 'approved' ) { $entry_approved = true; break; } if ( $entry[ 'approval_status_' . $approver ] != 'approved' ) { $entry_approved = false; } if ( $new_status == 'rejected' ) { $entry_rejected = true; break; } } } } }
- The topic ‘Multiple Approvers – FIX’ is closed to new replies.