Bonjour,
j’ai l’erreur javascript suivante lors de l’édition d’un scénario :
L’erreur apparaît systématiquement lors du masquage d’un bloc Action dont le premier bloc inclu est un bloc Commentaire. Vue sur Chrome et MS Edge. Ce n’est pas particulièrement gênant mais une solution sera toutefois bienvenue.
D’avance
Bonsoir.
On ne vois pas clairement votre scénario, mais je vois :
Un bloc action et c’est indiqué dedans : initialisation
C’est quoi ça ? Ce n’est pas cela un commentaire.
noodom
Juillet 25, 2024, 5:48
3
Salut,
Je reproduis et j’ai une correction.
Proposition d’un PR pour correction :
jeedom:alpha ← noodom:patch-24
opened 06:04PM - 25 Jul 24 UTC
## Description
fix on click on a scenario action mask beginning with a comment
…
## Types of changes
- [x] Bug fix _(non-breaking change which fixes)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Breaking change _(fix or feature that would cause existing functionality to change)_
- [ ] This change is only breaking for integrators, not for external standards or end-users.
- [ ] Documentation improvement
## PR checklist
- [x] I have checked there is no other PR open for the same change.
- [x] I have read the [[La ligne directrice pour contribuer à ce projet / Contribution guidelines for this project](.github/CONTRIBUTING.md)).
- [x] I grant the project the right to include and distribute the code under the GNU.
- [ ] I have added tests to cover my changes.
- [x] I have verified that the code complies with the projects coding standards.
- [ ] [Required for new sniffs] I have added MD documentation for the sniff.
1 « J'aime »
noodom
Juillet 25, 2024, 5:54
4
En fait si, il a ajouté un bloc commentaire avec le commentaire « initialisation ».
Donc le scénario de reproduction :
Ajouter bloc => « Action »
Depuis le bloc Action, Ajouter « Bloc Commentaire »
Sélectionner l’oeil du bloc Action
=> Erreur javascript.
3 « J'aime »
Bjr, ce n’est pas un problème spécifique à un scénario, mais à tous les scénarios. Il n’ y a donc pas d’intérêt à détailler un scénario plutôt qu’un autre.
Le premier bloc est un bloc commentaire comme je l’indique dans mon 1er message. Son contenu est « initialisation ».
Avez vous essayé de reproduire le cas ?
Bjr,
correction appliquée.
Ca fonctionne sans erreur maintenant .
Merci
system
A fermé ce sujet ()
Juillet 28, 2024, 4:18
7
Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.