Delete key on dropdown relationship field returns error #6659
Replies: 11 comments
-
I tried to reproduce your issue with both single and multiple relationships setting to autocomplete but cannot reproduce this issue. |
Beta Was this translation helpful? Give feedback.
-
I restored a complete backup of the site to my dev environment. I have changed the theme to 2021, disabled all plugins and then reactivated the pods plugin. Attached are the edit screens for tournaments and tours/events. I then went in to edit a tournament, clicked on the tour_id field and hit the delete key. Same thing happens. Error is also attached. |
Beta Was this translation helpful? Give feedback.
-
I tried the following settings:
I believe these are the only options with a similar UI. Did you check your browser console for JS errors? |
Beta Was this translation helpful? Give feedback.
-
I turned on the javascript console and when I hit delete on that field, the following error appears... TypeError: null is not an object (evaluating 'e.value') I tried to copy and paste the text below this but had issues. Here is a screen grab so that you can see the complete error. I did see that top javascript error and wonder if that has anything to do with it. When I dig into that error, it points to the following code in custom.js /* viewport width */ $('.js-button-nav').click(function(){ I assume the two other errors are the date issue that we already know about. Mike |
Beta Was this translation helpful? Give feedback.
-
That could indeed be this issue here. I guess it's rendered from the theme? |
Beta Was this translation helpful? Give feedback.
-
What's strange is that it still happens when I change the theme to something like 2020. Where would I begin to look at how to remove the script from admin pages? Mike |
Beta Was this translation helpful? Give feedback.
-
Let's retest this on Pods 2.8.9 which will be out shortly. |
Beta Was this translation helpful? Give feedback.
-
Just upgraded and tested. This is still happening. |
Beta Was this translation helpful? Give feedback.
-
Hi @Mike-Howerton Please open the first error |
Beta Was this translation helpful? Give feedback.
-
That points to the $(function(){ line in this code... /* viewport width */ $('.js-button-nav').click(function(){ |
Beta Was this translation helpful? Give feedback.
-
Since it's causing the error, please fix or remove that code :) My guess is that it's coming from a theme or something and it should only be loaded on the front-end. |
Beta Was this translation helpful? Give feedback.
-
Description
I came across this issue completely on accident today.
I have a custom post type (tournament) that is connected to another custom post type (tour) by a tour_id field. This displays in the tournament admin page as a dropdown field. When on that field, if you hit the delete key on a blank field, the field changes to “There was an error rendering the field.”.
Note that if you start typing into the field and hit delete too many times, this also happens.
This is happening in Firefox and Safari.
Version
2.8.1.1
Testing Instructions
Two CPTs connected via relationship fields. Add new record under either one of these CPTs and hit delete on the connecting field.
Screenshots / Screencast
No response
Possible Workaround
No response
Site Health Information
Pods Package
Beta Was this translation helpful? Give feedback.
All reactions