Skip to content

Commit

Permalink
fix failed save rule
Browse files Browse the repository at this point in the history
  • Loading branch information
richaferry committed Sep 21, 2024
1 parent 4663ef0 commit b1cafa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions dev-workspace/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ services:
- ../cache/.composer/cache:/root/.composer/cache
- ../cache/.composer/auth.json:/root/.composer/auth.json
- /var/run/docker.sock:/var/run/docker.sock
extra_hosts:
- "dockerhost:${DOCKER_HOST_IP}"
environment:
- DOCKER_HOST_IP=${DOCKER_HOST_IP}
8 changes: 5 additions & 3 deletions modules/checklists/templates/global-checklists.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
return $requirement->group === $key;
});

if (empty($has_requirements) && $key !== 'custom') {
continue;
} ?>
// Skip if the tab has no requirements or is not the custom tab
if (empty($has_requirements) && $key !== 'custom') continue;
?>
<li class="<?php echo esc_attr($post_type_key); ?>">
<a data-tab="<?php echo esc_attr($key); ?>"
data-post-type="<?php echo esc_attr($post_type_key); ?>"
Expand Down Expand Up @@ -71,6 +71,8 @@
foreach ($context['tabs'][$post_type_key] as $group => $tabInfo) :
foreach ($context['requirements'] as $post_type => $post_type_requirements) : ?>
<?php
// Skip if the post type is not the current one
if ($post_type !== $post_type_key) continue;
$group_has_requirements = false;
?>
<?php foreach ($post_type_requirements as $requirement) : ?>
Expand Down

0 comments on commit b1cafa0

Please sign in to comment.