Skip to content

Commit

Permalink
Better make group/field exports unique by the pod type/name when gett…
Browse files Browse the repository at this point in the history
…ing global configs
  • Loading branch information
sc0ttkclark committed Aug 4, 2023
1 parent a0382bd commit 38fee15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/PodsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1843,20 +1843,23 @@ public function get_global_config( $current_pod = null ) {
'include_fields' => false,
'include_field_data' => true,
'bypass_cache' => true,
'ref_id' => 'global/' . $pod_object->get_type() . '/' . $pod_object->get_name(),
] ),
'group' => $group_object->export( [
'include_groups' => true,
'include_group_fields' => true,
'include_fields' => false,
'include_field_data' => true,
'bypass_cache' => true,
'ref_id' => 'global/' . $pod_object->get_type() . '/' . $pod_object->get_name(),
] ),
'field' => $field_object->export( [
'include_groups' => true,
'include_group_fields' => true,
'include_fields' => false,
'include_field_data' => true,
'bypass_cache' => true,
'ref_id' => 'global/' . $pod_object->get_type() . '/' . $pod_object->get_name(),
] ),
];

Expand Down
6 changes: 6 additions & 0 deletions src/Pods/Whatsit.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38fee15

Please sign in to comment.