Comments (6)
I looked at the code.
When a new entry is added, on submit, the entity is created without the new_tag_prefix (this is ok), then, the form is rendered with the entity value (this is not ok).
In the finishView method, the new_tag_prefix should be added to the input value if it's an added entry. So the form will be rendered with the prefix and the entity will keep the correct value (without the prefix).
from select2entity-bundle.
I just create a pull request to fix this issue.
from select2entity-bundle.
Fixed by #80
from select2entity-bundle.
Reopened, please see: #81
from select2entity-bundle.
Hi,
for me this breaks resubmitting existing entities if tags are not allowed.
It worked till 2.9.2 but is broken with 2.9.3.
An error is thrown in the EntityToPropertyTransformer around line 100.
Vyctorya
from select2entity-bundle.
Can you provide more details?
I am not able to reproduce your issue.
from select2entity-bundle.
Related Issues (20)
- How to change the value used from the AJAX response? HOT 2
- I can't select an option HOT 1
- How to restrict adding duplicate tags? HOT 7
- Need help to use it with sonata admin HOT 2
- optgroup option ?
- [EntitiesToPropertyTransformer] Entities result order issue
- Neither the property .... nor one of the methods ... exist and have public access in class "Doctrine\ORM\PersistentCollection"
- Error with doctrine/persistence 2.0.0 HOT 1
- Supporting CollectionType
- Add closeOnSelect option
- Filter doesn´t found HOT 2
- Drop jQuery?
- Argument 1 passed to Tetranz\Select2EntityBundle\Form\Type\Select2EntityType::__construct() must be an instance of Doctrine\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given
- How to set header X-AUTH-USER info from bundle?
- Change of query_parameters is not recognized when done in onchange-function HOT 1
- Dont work with MongoDB DocumentManager
- Note from the maintainer of this project. HOT 7
- Initialize error javascript
- Prefill select on form load wich remote_route
- Is this compatible with symfony 6? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from select2entity-bundle.