You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #14583 was fixed for Doctrine, but is still broken for Propel and the Propel Bridge (PostgreSQL for the database). Submitting an empty value for a choice list gives the error:
Invalid text representation: 7 ERROR: invalid input syntax for integer: ""
The code from the original post in #14583 (adjusted for PHP 5.3) seems to fix the problem:
publicfunction getChoicesForValues(array$values)
{
if (empty($values)) {
returnarray();
} else {
$first = reset($values);
if (empty($first)) {
returnarray();
}
}
The text was updated successfully, but these errors were encountered:
Issue #14583 was fixed for Doctrine, but is still broken for Propel and the Propel Bridge (PostgreSQL for the database). Submitting an empty value for a choice list gives the error:
The code from the original post in #14583 (adjusted for PHP 5.3) seems to fix the problem:
The text was updated successfully, but these errors were encountered: