pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

ACT default sort order not executed #6336

Open BrigittaBuerger opened 2 years ago

BrigittaBuerger commented 2 years ago

Description

The list of pods objects (ACT) in the backend is ordered by id not by the selected primary title field.

I was informed of this problem after updates to 2.8.3. It may have occurred earlier.

This happens on all sites I use Pods on and independent of other plugins

Version

2.8.5

Testing Instructions

Create an ACT with some text fields. In Advanced Options set Title Field to a text field. Go to Manage Pod page and have a look at the sort order. This should be and has been before Title Field.

Screenshots / Screencast

Edit Pod Title Field before update Manage Stallions sort order after update Manage Stallions sort order before update Edit Pod Title Field after update

Possible Workaround

Order manually every time. This is not an option.

Site Health Information

This ist from a staging site where I deactivated all other plugins. The problem remains the same.

`
### wp-core ###

version: 5.8.2
site_language: de_DE
user_language: de_DE
timezone: Europe/Berlin
permalink: /%postname%/
https_status: false
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: undefined
environment_type: production
user_count: 3
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /usr/www/users/atrico/stallions
wordpress_size: 50,32 MB (52767940 bytes)
uploads_path: /usr/www/users/atrico/stallions/wp-content/uploads
uploads_size: 2,22 GB (2379825723 bytes)
themes_path: /usr/www/users/atrico/stallions/wp-content/themes
themes_size: 6,24 MB (6545727 bytes)
plugins_path: /usr/www/users/atrico/stallions/wp-content/plugins
plugins_size: 59,01 MB (61875386 bytes)
database_size: 46,24 MB (48484960 bytes)
total_size: 2,37 GB (2549499736 bytes)

### wp-active-theme ###

name: GeneratePress Child theme of generatepress (generatepress-child-theme)
version: 3.0.2
author: Tom Usborne
author_website: (undefined)
parent_theme: GeneratePress (generatepress)
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, post-thumbnails, post-formats, woocommerce, title-tag, html5, customize-selective-refresh-widgets, align-wide, responsive-embeds, editor-color-palette, custom-logo, menus, editor-style, widgets
theme_path: /usr/www/users/atrico/stallions/wp-content/themes/generatepress-child-theme
auto_update: Deaktiviert

### wp-parent-theme ###

name: GeneratePress (generatepress)
version: 3.1.0
author: Tom Usborne
author_website: https://tomusborne.com
theme_path: /usr/www/users/atrico/stallions/wp-content/themes/generatepress
auto_update: Deaktiviert

### wp-themes-inactive (1) ###

Twenty Twenty-One: version: 1.4, author: WordPress-Team, Automatische Aktualisierungen deaktiviert

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

Pods - Custom Content Types and Fields: version: 2.8.5, author: Pods Framework Team, Automatische Aktualisierungen deaktiviert

### wp-plugins-inactive (16) ###

All In One WP Security: version: 4.4.9, author: Tips and Tricks HQ, Peter Petreski, Ruhul, Ivy, Automatische Aktualisierungen deaktiviert
Autoptimize: version: 2.9.3, author: Frank Goossens (futtta), Automatische Aktualisierungen deaktiviert
BackWPup: version: 3.10.0, author: Inpsyde GmbH, Automatische Aktualisierungen deaktiviert
Better Search Replace: version: 1.3.4, author: Delicious Brains, Automatische Aktualisierungen deaktiviert
Caldera Forms: version: 1.9.5, author: Caldera Forms, Automatische Aktualisierungen deaktiviert
Category Order and Taxonomy Terms Order: version: 1.5.7.7, author: Nsp-Code, Automatische Aktualisierungen deaktiviert
Classic Editor: version: 1.6.2, author: WordPress Contributors, Automatische Aktualisierungen deaktiviert
Enable Media Replace: version: 3.6.3, author: ShortPixel, Automatische Aktualisierungen deaktiviert
GP Premium: version: 2.1.1, author: Tom Usborne, Automatische Aktualisierungen deaktiviert
Orbisius Child Theme Creator: version: 1.5.2, author: Svetoslav Marinov (Slavi), Automatische Aktualisierungen deaktiviert
Page Builder by SiteOrigin: version: 2.15.2, author: SiteOrigin, Automatische Aktualisierungen deaktiviert
PHP Everywhere: version: 2.0.2, author: Alexander Fuchs, Automatische Aktualisierungen deaktiviert
Quick Featured Images: version: 13.5.7, author: Kybernetik Services, Automatische Aktualisierungen deaktiviert
Ultimate Category Excluder: version: 1.5, author: Marios Alexandrou, Automatische Aktualisierungen deaktiviert
User Role Editor: version: 4.60.2, author: Vladimir Garagulya, Automatische Aktualisierungen deaktiviert
YOP Poll: version: 6.3.2, author: yourownprogrammer, Automatische Aktualisierungen deaktiviert

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Nicht verfügbar
imagemagick_version: Nicht verfügbar
imagick_version: Nicht verfügbar
file_uploads: File uploads is turned off
post_max_size: 100M
upload_max_filesize: 100M
max_effective_size: 100 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.27

### wp-server ###

server_architecture: Linux 4.19.0-18-amd64 x86_64
httpd_software: Apache
php_version: 7.4.26 64bit
php_sapi: cgi-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 96M
admin_memory_limit: 256M
max_input_time: -1
upload_max_filesize: 100M
php_post_max_size: 100M
curl_version: 7.64.0 OpenSSL/1.1.1d
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 5.7.35-1
client_version: mysqlnd 7.4.26

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /usr/www/users/atrico/stallions/wp-content
WP_PLUGIN_DIR: /usr/www/users/atrico/stallions/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
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_LOCAL_DEV: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

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

### pods ###

pods-server-software: Apache
pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
pods-session-save-path: /usr/home/atrico/.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: No
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: Yes
pods-memory-current-usage: 42,622M
pods-memory-current-usage-real: 30,500M
pods-network-wide: No
pods-install-location: /wp-content/plugins/pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Yes
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Yes
pods-api-cache: Yes
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: Yes

`

Pods Package

{
    "meta": {
        "version": "2.8.5",
        "build": 1638289119
    },
    "pods": [
        {
            "name": "test",
            "id": 7910,
            "label": "tests",
            "description": "",
            "type": "pod",
            "storage": "table",
            "label_singular": "test",
            "public": "1",
            "show_ui": "1",
            "pod_index": "f1",
            "_migrated_28": "1",
            "required": "0",
            "unique": "0",
            "hierarchical": "0",
            "pod_parent": "parent",
            "ui_style": "post_type",
            "ui_actions_enabled": [
                "add",
                "edit",
                "delete"
            ],
            "ui_fields_manage": [
                "f1",
                "f2",
                "f3"
            ],
            "ui_filters": [
                "f1",
                "f2",
                "f3"
            ],
            "show_in_menu": "1",
            "menu_position": "0",
            "ui_reorder_field": "menu_order",
            "groups": [
                {
                    "name": "details",
                    "id": 7911,
                    "label": "Details",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "f1",
                            "id": 7912,
                            "label": "f1",
                            "description": "",
                            "weight": 0,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "unique": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "roles_allowed": "administrator"
                        },
                        {
                            "name": "f2",
                            "id": 7913,
                            "label": "f2",
                            "description": "",
                            "weight": 1,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "unique": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "roles_allowed": "administrator"
                        },
                        {
                            "name": "f3",
                            "id": 7914,
                            "label": "f3",
                            "description": "",
                            "weight": 2,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "unique": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "roles_allowed": "administrator"
                        }
                    ]
                }
            ]
        }
    ]
}
sc0ttkclark commented 2 years ago

Need to look further into this to see when it stopped working like this exactly to determine how best to move forward.