Hello, I am facing this same issue.
The problem is that the module, if possible, fills the label in the presave hook where the entity ID is not yet available. And after the label is no longer considered empty and is not updated.My solution is to add the ability to force the re-save of the label. To do this, a timestamp is written to the label for new entities that do not have an ID, which will also be considered empty. The new option in the form is called "Generate by re-saving"
- last update
over 1 year ago 20 pass - last update
over 1 year ago Composer error. Unable to continue. - Status changed to Needs review
over 1 year ago 11:16am 11 July 2023 - Status changed to RTBC
over 1 year ago 10:58am 14 August 2023 - 🇩🇪Germany marcoliver Neuss, NRW, Germany
I just tested the patch from #9 🐛 [node:nid] not added in label in a certain combination of settings Needs review and it works fine. Seems like a good solution!
Marking as RTBC.
- Status changed to Postponed: needs info
12 months ago 3:08pm 23 January 2024 - 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin
+ /** + * The temporary label for prevent database errors. + */
Apart from some minor trouble in the patch which needs to be corrected/clarified, this issue is far behind and we need more reports if this issue is still reproducable at latest dev and latest stable release, which is 2 years younger than this issue here. Additionally the patch needs to be rerolled then for latest dev if the issue still persist. Than we can think about a backport if required for circumstances where older versions of this projeect are mandatory.
- Merge request !17Issue #3205865 by kksandr: Fixed adding entity ID when label is optional → (Closed) created by Unnamed author
- last update
12 months ago Composer error. Unable to continue. - last update
12 months ago 20 pass, 2 fail - Status changed to Needs review
12 months ago 9:06pm 28 January 2024 - last update
12 months ago Composer error. Unable to continue. Apart from some minor trouble in the patch
The solution you quote is already used in this module. The patch just moves this string constant into a class constant for easy reuse.
This issue is still relevant, I have opened a merge request for the current version of the module.
I also added a test that reproduces the problem.I would like the module to move to Gitlab CI → or fix Drupal CI for automated testing.
Because the default tests → fail via a deprecation error:---Errors---
You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.- 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin
@kksandr: Thanks for coming back on this!
It would be nice if the module switched to Gitlab CI or fixed Drupal CI for automated testing.
Feel free to open an issue for that. I would embrace that! +1
The solution you quote is already used in this module.
Minor misunderstanding: I was referring to minor gramma and typo in code comments.
Thanks for the reroll! +1 For all the hard work in here. Will review.
- Merge request !24Issue #3205865 by kksandr: Fixed adding entity ID when label is optional → (Open) created by Unnamed author
- last update
8 months ago Composer error. Unable to continue. - last update
8 months ago Composer error. Unable to continue. - 🇫🇷France xavier.masson Haute-Normandie
xavier.masson → made their first commit to this issue’s fork.