CoreBOSBB

Full Version: SOLVED: Setting standard dropdown item does not work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Beware: this is on my ExactOnline module, the first module I made so probably I made some mistake there. One of the fields created is a dropdown in the invoice module. From time to time, it updates the optional items. The problem is, I set a standard value for this picklist in the layout editor of invoices, but it doesn't work. Where is this standard value stored?

EDIT
I found the default value is stored on the field row in vtiger_field. The default value I selected is stored, but not used when I create a new invoice.

Think I found it. The script I use to sync the field options adds a bunch of spaces. That's why when in Smarty the option labels/values don't exactly match and the "selected" attribute is not set.
Solved in this commit