This commit is contained in:
Sam Georges 2014-05-29 19:35:46 +10:00
parent df095aa516
commit a78908dcc3
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
* **Build 95** (2014-05-29)
* **Build 96** (2014-05-29)
- Plugin CLI commands are now case insensitive.
- Fixes a bug where belongsTo form field relations were not being set.
- Form field `richeditor` (WYSIWYG) no longer adds full page HTML tags.

View File

@ -121,6 +121,12 @@ class Relation extends FormWidgetBase
*/
public function getSaveData($value)
{
return strlen($value) ? $value : null;
if (is_string($value) && !strlen($value))
return null;
if (is_array($value) && !count($value))
return null;
return $value;
}
}