| @@ -72,8 +72,11 @@ | ||
| 72 | 72 | |
| 73 | 73 | $sub_location = get_post_meta($post_id, Meta_Keys::SUB_LOCATION, true) ?: ''; |
| 74 | 74 | $conditions_meta = get_post_meta($post_id, Meta_Keys::CONDITIONS, true); |
| 75 | 75 | $conditions = Conditions::normalize($conditions_meta); |
| 76 | + if (empty($conditions['groups'])) { | |
| 77 | + $conditions = Conditions::defaults_for_sub_location($sub_location); | |
| 78 | + } | |
| 76 | 79 | $priority = (int) get_post_meta($post_id, Meta_Keys::PRIORITY, true); |
| 77 | 80 | $is_pro_only = (bool) get_post_meta($post_id, Meta_Keys::IS_PRO_ONLY, true); |
| 78 | 81 | |
| 79 | 82 | // Check if ENABLED meta exists |