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

Relationship field type settings not considered #7372

Open
iNalgiev opened this issue Oct 25, 2024 · 0 comments
Open

Relationship field type settings not considered #7372

iNalgiev opened this issue Oct 25, 2024 · 0 comments

Comments

@iNalgiev
Copy link

iNalgiev commented Oct 25, 2024

Description

The relationship field type settings are not working as intended.

Example:

I set the Display Format Separator to ';' for Location field:

Image

The result I get:
Image

I set the Selection limit to 2:

Image

When I edit the pod item, I can see all the Location results (> 2):
Image

I'm using 2 Advanced Content Type tables. The Location pod is a relationship field with Subject pod.

Version

3.2.7.1

Testing Instructions

  1. Setup 2 Advanced Content Type tables (Subject and Location)
  2. Link the Location table to Subjects table using a Relationship field type. See example screenshot below.
  3. Open Relationship options (in location field)
  4. Set the Selection type to Multiple Select and Input type to Multi select
  5. Set Display format to Custom seperator without "and".
  6. Set Display format seperator to ";"
  7. Set the Selection limit to 2.
  8. All other settings to default
  9. Add more than 2 location pod items
  10. Add a Subject pod items > Notice that all location items are shown
  11. Add a Subject pod item and select 'multiple' locations items
  12. Open Subject overview page > Notice that multiple location items are shown with "and" in between. (see second screenshot below)

Screenshots / Screencast

Image

Image

Possible Workaround

No response

Site Health Information

### wp-core ###

version: 6.6.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: C:\wamp64\www\wordpress2
wordpress_size: 55.37 MB (58057957 bytes)
uploads_path: C:\wamp64\www\wordpress2/wp-content/uploads
uploads_size: 0.00 B (0 bytes)
themes_path: C:\wamp64\www\wordpress2/wp-content/themes
themes_size: 11.92 MB (12498415 bytes)
plugins_path: C:\wamp64\www\wordpress2/wp-content/plugins
plugins_size: 9.22 MB (9664477 bytes)
fonts_path: C:\wamp64\www\wordpress2/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 1.06 MB (1114069 bytes)
total_size: 77.57 MB (81334918 bytes)

### wp-active-theme ###

name: Twenty Twenty-Four (twentytwentyfour)
version: 1.2
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates
theme_path: C:\wamp64\www\wordpress2/wp-content/themes/twentytwentyfour
auto_update: Disabled

### wp-themes-inactive (2) ###

Twenty Twenty-Three: version: 1.5, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.8, author: the WordPress team, Auto-updates disabled

### wp-plugins-active (1) ###

Pods - Custom Content Types and Fields: version: 3.2.7.1, author: Pods Framework Team, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: 1
post_max_size: 8M
upload_max_filesize: 2M
max_effective_size: 2 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: not available

### wp-server ###

server_architecture: Windows NT 10.0 AMD64
httpd_software: Apache/2.4.54 (Win64) PHP/8.1.13 mod_fcgid/2.3.10-dev
php_version: 8.1.13 64bit
php_sapi: apache2handler
max_input_variables: 10000
time_limit: 300
memory_limit: 1G
max_input_time: 60
upload_max_filesize: 2M
php_post_max_size: 8M
curl_version: 7.77.0 OpenSSL/1.1.1s
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false
current: 2024-10-25T14:35:45+00:00
utc-time: Friday, 25-Oct-24 14:35:45 UTC
server-time: 2024-10-25T14:35:43+00:00

### wp-database ###

extension: mysqli
server_version: 5.7.40
client_version: mysqlnd 8.1.13
max_allowed_packet: 1073741824
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: C:\wamp64\www\wordpress2/wp-content
WP_PLUGIN_DIR: C:\wamp64\www\wordpress2/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 1G
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: writable

### pods ###

pods-version: 3.2.7.1
pods-first-version: 3.2.7.1
pods-last-version: 3.2.7.1
pods-server-software: Apache/2.4.54 (Win64) PHP/8.1.13 mod_fcgid/2.3.10-dev
pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
pods-session-save-path: c:/wamp64/tmp
pods-session-save-path-exists: Yes
pods-session-save-path-writable: Yes
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: Yes
pods-opcode-cache-redis: No
pods-object-cache-apc: No
pods-object-cache-apcu: No
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: No
pods-memory-current-usage: 27.972M / 40M
pods-memory-current-usage-real: 30.000M
pods-network-wide: No
pods-install-location: C:\wamp64\www\wordpress2\wp-content\plugins\pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Yes
pods-relationship-table-status: 4
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Yes
pods-api-cache: Yes
pods-shortcode-allow-evaluate-tags: No
pods-can-use-sessions: Yes
pods-settings-types_only: Enable [types_only=0]
pods-settings-watch_changed_fields: Disable [watch_changed_fields=0]
pods-settings-metadata_integration: Disable [metadata_integration=0]
pods-settings-metadata_override_get: Disable [metadata_override_get=0]
pods-settings-register_meta_integration: Disable [register_meta_integration=0]
pods-settings-media_modal_fields: Enable [media_modal_fields=0]
pods-settings-session_auto_start: Disable [session_auto_start=0]
pods-settings-dynamic_features_allow: Enable [dynamic_features_allow=1]
pods-settings-dynamic_features_enabled: Display and Form [dynamic_features_enabled=display,form]
pods-settings-show_access_restricted_messages: Disable [show_access_restricted_messages=0]
pods-settings-show_access_admin_notices: Enable [show_access_admin_notices=1]
pods-settings-dynamic_features_allow_sql_clauses: Disable [dynamic_features_allow_sql_clauses=0]
pods-settings-display_callbacks: Customized [display_callbacks=customized]
pods-settings-display_callbacks_allowed: esc_attr,esc_html

Pods Package

{
    "@meta": {
        "version": "3.2.7.1",
        "build": 1729866846
    },
    "settings": {
        "types_only": "0",
        "watch_changed_fields": "0",
        "metadata_integration": "0",
        "metadata_override_get": "0",
        "register_meta_integration": "0",
        "media_modal_fields": "0",
        "session_auto_start": "0",
        "dynamic_features_allow": "1",
        "dynamic_features_enabled": [
            "display",
            "form"
        ],
        "show_access_restricted_messages": "0",
        "show_access_admin_notices": "1",
        "dynamic_features_allow_sql_clauses": "0",
        "display_callbacks": "customized",
        "display_callbacks_allowed": "esc_attr,esc_html",
        "wisdom_opt_out": "1",
        "active_components": [
            "advanced-content-types",
            "advanced-relationships",
            "migrate-packages",
            "templates"
        ]
    },
    "pods": [
        {
            "name": "locations",
            "id": 17,
            "label": "Location",
            "description": "",
            "type": "pod",
            "storage": "table",
            "label_singular": "Locations",
            "public": "0",
            "show_ui": "1",
            "pod_index": "name",
            "_migrated_28": "1",
            "show_in_menu": "1",
            "ui_actions_enabled": [
                "add",
                "duplicate",
                "delete",
                "edit"
            ],
            "ui_fields_manage": [
                "name"
            ],
            "ui_filters": [
                "name"
            ],
            "groups": [
                {
                    "name": "details",
                    "id": 18,
                    "label": "Details",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "name",
                            "id": 19,
                            "label": "Name",
                            "description": "",
                            "weight": 0,
                            "type": "text",
                            "required": "1"
                        },
                        {
                            "name": "created",
                            "id": 20,
                            "label": "Date Created",
                            "description": "",
                            "weight": 1,
                            "type": "datetime",
                            "datetime_format": "ymd_slash",
                            "datetime_time_type": "12",
                            "datetime_time_format": "h_mm_ss_A"
                        },
                        {
                            "name": "modified",
                            "id": 21,
                            "label": "Date Modified",
                            "description": "",
                            "weight": 2,
                            "type": "datetime",
                            "datetime_format": "ymd_slash",
                            "datetime_time_type": "12",
                            "datetime_time_format": "h_mm_ss_A"
                        }
                    ]
                }
            ]
        },
        {
            "name": "subjects",
            "id": 9,
            "label": "Subject",
            "description": "",
            "type": "pod",
            "storage": "table",
            "label_singular": "Subjects",
            "public": "0",
            "show_ui": "1",
            "pod_index": "name",
            "_migrated_28": "1",
            "show_in_menu": "1",
            "ui_actions_enabled": [
                "add",
                "edit",
                "duplicate",
                "delete"
            ],
            "ui_fields_manage": [
                "name",
                "location"
            ],
            "ui_style": "post_type",
            "use_submenu_fallback": "0",
            "menu_position": "0",
            "ui_reorder_field": "menu_order",
            "ui_filters": [
                "name",
                "location"
            ],
            "groups": [
                {
                    "name": "details",
                    "id": 10,
                    "label": "Details",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "name",
                            "id": 11,
                            "label": "Name",
                            "description": "",
                            "weight": 0,
                            "type": "text",
                            "required": "1"
                        },
                        {
                            "name": "created",
                            "id": 12,
                            "label": "Date Created",
                            "description": "",
                            "weight": 1,
                            "type": "datetime",
                            "datetime_format": "ymd_slash",
                            "datetime_time_type": "12",
                            "datetime_time_format": "h_mm_ss_A"
                        },
                        {
                            "name": "modified",
                            "id": 13,
                            "label": "Date Modified",
                            "description": "",
                            "weight": 2,
                            "type": "datetime",
                            "datetime_format": "ymd_slash",
                            "datetime_time_type": "12",
                            "datetime_time_format": "h_mm_ss_A"
                        },
                        {
                            "name": "location",
                            "id": 24,
                            "label": "Location",
                            "description": "",
                            "weight": 3,
                            "type": "pick",
                            "pick_object": "pod",
                            "pick_val": "locations",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "multiselect",
                            "pick_display_format_multi": "custom",
                            "pick_display_format_separator": ";",
                            "pick_allow_add_new": "0",
                            "pick_taggable": "0",
                            "pick_show_icon": "0",
                            "pick_show_edit_link": "0",
                            "pick_show_view_link": "0",
                            "pick_limit": "2",
                            "pick_user_role": "Administrator",
                            "pick_sync_taxonomy": "0",
                            "pick_sync_taxonomy_hide_taxonomy_ui": "0",
                            "pick_post_status": "publish",
                            "pick_post_author": "0",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "default_evaluate_tags": "0",
                            "default_empty_fields": "0",
                            "roles_allowed": "administrator",
                            "enable_conditional_logic": "0",
                            "required": "0",
                            "unique": "0",
                            "logged_in_only": "0",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant