-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caractères spéciaux champs conditionnels #1270
Comments
Bonjour Il n'y aura plus de version corrective pour la série 2.6.x. Il est fort possible que le problème soit résolu avec la version 2.7.0 à venir. Je vous invite à essayer la beta 3 pour voir si le problème persiste. |
Je suis en version beta 3 actuellement |
Bonjour J'ai créé un formulaire avec 2 questions de type texte, la seconde étant affichée si la première contient "test =". Avec la version de développemetn actuelle (eta 3 + quelques correctifs) je n'ai eu aucun souci. |
Hi I found several issues when investigating. Please test the latest revision of the develop branch with the above patch and feedback |
It still does not work with the patch on the latest version of the develop branch. |
Indeed, I updated the PR, please try again and feeback |
With the last modification it works. |
I just did some tests, I think there is a problem to recover the answer and for showing entered form.
|
Hi This error looks like an inconsistency in your DB. Let's assume you have a form with two fields A and B B is hidden unless A matches some expression, but A does not exists (it may be deleted after confuring B) In such case, the code will instanciate an object representing the field A to do the comparison defined in the field B. This instanciation probably failed. Please have a look in your database: check if this A field is in the DB. If the inconsistency is confirmed, then I need to find what did you do with this A field. Maybe a cascaded deletion is missing in the plugin (i'm checking right now) |
Update the cascaded deletion of the A field works as expected: deleting A will also delete the condition in the field B. |
I'll try to reproduce with your exact description. Stay tuned |
Another problem with the patch. |
Please tell me which types or fields are impacted. Text, textarea ? |
text |
The patch is updated, now you should be able to have a single quote in text and radio answers. |
Ok for single quote in text filed |
OK, now the conditions issue remains to be fixed. You have a condition in your question B. This contition has a the ID of the question A in a foreign key column. Checl that the ID of the question A matches the value in the condition. If not, try to delete questions A and B then recreate them (with the condition). |
Looks like it's working properly now. |
Hello, |
Hi, First, i will merge the PR of this issue as it seems solved. Next, please open a new issue for your HTTP 500 error. FYI, when such error happens the HTTP server logs a backtrace. This backtrace is required : it helps to solve a lot of fatal errors very quickly. |
I understand that it is easier to handle errors by making several requests but the error here is always related to the single quote. |
Yes, you're right, but 2 bugs needs to be more similar to ensure they are the same.
this one is a good example: there is again a single quote problem, but it does not impacts the conditions feature, and the place of the faulty quote is not the same. I'll submit other fixes for these 2 problems. Stay tuned. |
You'r right. |
Ok, so last information with a - '- it works |
for the HTTP 500 error : please test and feedback.
|
Yes question of type description. |
Hi @titidelaff FYI, both PR were merged to progress on other debugs. |
Hi No feedback, then I assume the bug is solved. Feel free to open a new ticket if issue still occurs. |
Lorsque que je créer un champ conditionnel avec une apostrophe ou une parenthése, la vérification du = sur la condition ne fonctionne pas.
The text was updated successfully, but these errors were encountered: