Open mikadobrain opened 11 years ago
Can we have more information ? Which version of symfony ? genemu ? Your composer.json file for example ? :)
Of course. composer.json:
{ "name": "symfony/framework-standard-edition", "description": "The \"Symfony Standard Edition\" distribution", "autoload": { "psr-0": { "": "src/" } }, "require": { "friendsofsymfony/facebook-bundle": "1.1.", "php": ">=5.3.3", "symfony/symfony": "2.1.", "doctrine/orm": ">=2.2.3,<2.4-dev", "doctrine/doctrine-bundle": "1.0.", "twig/extensions": "1.0.", "symfony/assetic-bundle": "2.1.", "symfony/swiftmailer-bundle": "2.1.", "symfony/monolog-bundle": "2.1.", "sensio/distribution-bundle": "2.1.", "sensio/framework-extra-bundle": "2.1.", "sensio/generator-bundle": "2.1.", "jms/security-extra-bundle": "1.2.", "jms/di-extra-bundle": "1.1.", "genemu/form-bundle": "2.1.*" }, "scripts": { "post-install-cmd": [ "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile" ], "post-update-cmd": [ "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets", "Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile" ] }, "minimum-stability": "dev", "extra": { "symfony-app-dir": "app", "symfony-web-dir": "web" } }
Hello.
I ran into problems while trying to set up an autocomplete-field using the following code using jquery-1.9.1, jquery-ui-1.10.2, jquery-ui-i18n:
$form->add( 'units', 'genemu_jqueryautocompleter_entity', array( 'class' => 'Status\ZKMBundle\Entity\Unit', 'route_name' => 'ajax_unit', 'multiple' => true, ));
When loading the page, javascript console says
Uncaught TypeError: Cannot read property 'source' of undefined
at the line containing
var $source = $autocompleter.data('autocomplete').source;
Autocompletion works nevertheless, but only for one item. When entering e.g. "o" it autocompletes to "orange, ". When entering "a" afterwards, the ajax-request contains "orange, a".