# \[4.56.1\] Link loss on variables

**URL:** <https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467>\
**Category:** Configuration\
**Tags:** scene, bug\
**Created:** [April 4, 2025, 1:28pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467 "2025-04-04T13:28:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [April 4, 2025, 1:28pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/1 "2025-04-04T13:28:07Z")

</div>

Hello,  
when you delete an action from a block that has a `Get last state`, the link to the variable used afterward breaks — it changes from {{x.y}} to {{x-1.y-1}} (I hope the video will make this clear enough…):

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [April 4, 2025, 1:47pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/2 "2025-04-04T13:47:50Z")

</div>

Hello @mutmut .

I think this topic is the same as that feature request on which you can add your vote 😉

If you confirm that it’s the same thing, I will close this topic…

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [April 4, 2025, 1:49pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/3 "2025-04-04T13:49:32Z")

</div>

Hi @StephaneB  
I’ll need the link 😉

In any case for me it’s a bug because I didn’t have this problem before (I can’t say which version worked).

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [April 4, 2025, 1:50pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/4 "2025-04-04T13:50:34Z")

</div>

Ah no, looking more closely at your video, it’s not the same thing, what you’re describing is ‹&nbsp;more serious&nbsp;›…

@pierre-gilles maybe this is an opportunity to address both at the same time?

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [April 4, 2025, 1:51pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/5 "2025-04-04T13:51:39Z")

</div>

oh I think you’re referring to the request for a unique ID per variable 😉

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [April 4, 2025, 1:53pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/6 "2025-04-04T13:53:59Z")

</div>

@StephaneB I think this is the link you were talking about : [[Scène] Propager la renumérotation des variables récupérées, quand l'une d'elles est supprimée](https://community.gladysassistant.com/t/scene-propager-la-renumerotation-des-variables-recuperees-quand-lune-delles-est-supprimee/9343) (and I had already voted for it 😉 )

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [April 4, 2025, 1:54pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/7 "2025-04-04T13:54:19Z")

</div>

I had forgotten the link, oops: [[Scène] Propager la renumérotation des variables récupérées, quand l'une d'elles est supprimée](https://community.gladysassistant.com/t/scene-propager-la-renumerotation-des-variables-recuperees-quand-lune-delles-est-supprimee/9343)

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [April 4, 2025, 1:54pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/8 "2025-04-04T13:54:31Z")

</div>

You were quicker than me 😉

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 4, 2025, 3:36pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/9 "2025-04-04T15:36:17Z")

</div>

Indeed, it’s a bug, thanks for the report!

I’ve created an issue:

> <https://github.com/GladysAssistant/Gladys/issues/2271>
>
> https://github.com/user-attachments/assets/3dc2ac2f-53c2-4ba4-8e6e-cfa64323a1e9
> …
> https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467

I’ll investigate and get back to you if I can’t reproduce it.

> [@StephaneB](#):
>
> @pierre-gilles maybe it’s an opportunity to handle both at the same time?

I don’t think so, they’re really two different topics 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 18, 2025, 7:55am UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/10 "2025-04-18T07:55:52Z")

</div>

Thanks for the feedback @mutmut, I identified the bug and fixed it in this PR:

> <https://github.com/GladysAssistant/Gladys/pull/2273>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> 
> \### Description of change
> 
> Fix https://github.com/GladysAssistant/Gladys/issues/2271

The fix is merged and will be included in the next Gladys release 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 18, 2025, 12:26pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/11 "2025-04-18T12:26:00Z")

</div>

Available in Gladys Assistant 4.57 :

> [@Gladys Assistant 4.57 : Mise à jour forcée en un clic white\_check\_mark](https://community.gladysassistant.com/t/gladys-assistant-4-57-mise-a-jour-forcee-en-un-clic/9482):
>
> Je suis heureux de vous annoncer la sortie de la version 4.57 de Gladys Assistant slight_smile Cette mise à jour apporte plusieurs améliorations, des corrections de bugs, et de nouvelles fonctionnalités attendues par la communauté. white_check_mark Nouveautés Bouton de mise à jour de Gladys : Il est désormais plus facile de mettre à jour votre installation de Gladys Assistant grâce à un bouton dédié dans l’interface ! Jusque-là, Gladys se mettait à jour automatiquement sous 24h mais il n’…

I’m closing this thread.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [April 18, 2025, 12:26pm UTC](https://community.gladysassistant.com/t/4-56-1-perte-de-lien-sur-variables/9467/12 "2025-04-18T12:26:04Z")

</div>


