Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Feature: Add migrated, transferred checks #232

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

kjohnson
Copy link
Contributor

@kjohnson kjohnson commented Jul 27, 2023

Description

This PR adds the give_is_form_migrated($formId) and give_is_form_donations_transferred($formId) functions for checking v3 references.

Testing Instructions

These functions can be used in the list table actions:

// \Give\DonationForms\V2\Endpoints\ListDonationForms::handleRequest

$migrate = $v2form
           && ! give_is_form_migrated($item['id']);

$transfer = $v2form
            && ! give_is_form_donations_transferred($item['id']);

@kjohnson kjohnson marked this pull request as ready for review July 27, 2023 15:01
@kjohnson kjohnson requested a review from alaca July 27, 2023 15:01
Copy link
Member

@alaca alaca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very simple and effective, I like it 👍

@kjohnson kjohnson merged commit e568a6f into develop Jul 28, 2023
@kjohnson kjohnson deleted the feature/migrate-transfer-functions branch July 28, 2023 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants