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

Apostrophe in simple-relationship field with single-select text list cannot be saved #898

Closed gingerbeardman closed 11 years ago

gingerbeardman commented 11 years ago

Apostrophe in simple-relationship field with single-select text list cannot be saved

eg. St Peter's Church

You can choose it, and update the page but it does not stick.

My workaround is to use ’ special apostrophe aka ’

sc0ttkclark commented 11 years ago

Can you provide maybe a little more direction on how to reproduce this?

gingerbeardman commented 11 years ago

I have corrected the above.

pod: events type: meta

field name: event_location field type: relationship related to: simple custom defined options:

Gloucester Cathedral Hereford Cathedral St Peter's Catholic Church Worcester Cathedral

Just try saving this setup with St Peter's Catholic Church selected, the setting is not honoured.

sc0ttkclark commented 11 years ago

Oh didn't realize you meant simple, got you!

sc0ttkclark commented 11 years ago

So it displays St Peter's Catholic Church in the selection box of the item form right, we're not talking about it having trouble saving the actual option in the field editor?

gingerbeardman commented 11 years ago

It can be entered into the field editor, no problem. It displays fine in the drop down on the pod page.

But if the user selects it and clicks Update, then the choice is not saved.

sc0ttkclark commented 11 years ago

Okay, now we're getting somewhere. Are you using the key|Value approach?

gingerbeardman commented 11 years ago

No

sc0ttkclark commented 11 years ago

Ok, I know where to look now, will shoot at it at lunch shortly