diff --git a/code/IconField.php b/code/IconField.php index 491d2d7..991c6c4 100755 --- a/code/IconField.php +++ b/code/IconField.php @@ -48,7 +48,7 @@ public function __construct($name, $title = null, $sourceFolder = null){ } $this->source = $icons; - Requirements::css('/resources/jaedb/iconfield/css/IconField.css'); + Requirements::css('/resources/vendor/jaedb/iconfield/css/IconField.css'); } @@ -63,8 +63,9 @@ public function Field($properties = array()) { $options = array(); // Add a clear option + $itemID = $this->ID() . '_' . preg_replace('/[^a-zA-Z0-9]/', '', 'none'); $options[] = ArrayData::create(array( - 'ID' => 'none', + 'ID' => $itemID, 'Name' => $this->name, 'Value' => '', 'Title' => '',