[Resuelto] Latest update cause select field to populate empty option.
Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.
Problem:
Views 2.6.2 changed how empty default options are added to Views filters where the options are manually set, adding an empty option even if one already exists.
Solution:
This was an unintended change which will be reverted in the next version of Views.
This support ticket is created hace 6 años, 4 meses. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
I can't replicate the issue, can you give more details about where exactly you see this?
I have a Types select field which works fine on the backend post edit screens, fine in front-end Forms, and also outputs its value correctly in templates.
When you insert a select field filter control in an archive with manual options where you include a default option, since Views 2.6.2 an additional empty default option has been added automatically, too.
Let me check with the developers before you go making any changes, because you might edit your archives to remove the manual default option, only to find that the automatic default option gets removed in a future update.
I'll update you when I hear from them about how to proceed.
As I said, it wasn't intended, the change looks to be a side effect of something else that was changed in Views 2.6.2, we can call it a bug, and it will be fixed soon.
If you have made changes to adapt to the bug then I'm sorry if that involves changing back again when the bug is fixed.
I expect it to be resolved quickly and I'll let you know when it is.