Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #7: add default values for relationshipTypes custom field g… #16

Merged
merged 2 commits into from
Jun 30, 2021

Conversation

lucky091588
Copy link
Collaborator

…enerate tokens

reltoken.php Outdated
'is_active' => 1,
'api.RelationshipType.create' => [
'name_a_b' => '$value.name_a_b',
'name_b_a' => '$value.name_b_a',
Copy link
Owner

Choose a reason for hiding this comment

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

@lucky091588 Seems redundant to set name_a_b and name_b_a. Is that necessary?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@twomice It is necessary since it is a mandatory field when using RelationshipType create in api3.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@twomice I just confirmed that it's not necessary since it has the id with a value which means updating.

@twomice twomice merged commit 84a3b88 into twomice:master Jun 30, 2021
@twomice
Copy link
Owner

twomice commented Jun 30, 2021

Merged, thanks @lucky091588

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants