Skip to content
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

Dynamic Title format not automatically updating entries when saving entry type #1728

Closed
RitterKnightCreative opened this issue May 23, 2017 · 5 comments
Assignees
Labels
bug severity:minor Cosmetic issues or bugs with simple workarounds

Comments

@RitterKnightCreative
Copy link

Description

When setting a dynamic title format for an entry type—in its entry type settings—when you go to save the title format, it does not automatically save the existing entries. You need to manually resave them.

I'm not sure when this started happening but working on a client project now with a lot of technical information and wanted to use a couple of the existing fields to populate the title.

I recall a few versions back when Craft would automatically kick off a task to update the new entries. If you go into an entry and save it out manually, it does work.

Craft would also kick back an error message if it couldn't find your fields or your twig format was bad. The only way you'll know is if you go into each entry and resave it, then you'll get the error.

I'm assuming this is a bug end not new behavior?

Steps to reproduce

  1. Set a custom Title Format for an entry type
  2. Hit Save in that window
  3. Existing entries are not updated with new title format.

Additional info

  • Craft version: Craft CMS 2.6.2980
  • PHP version: 7
  • Database driver & version: mysqlnd 5.0.12-dev - 20150407 (MAMP)
@brandonkelly
Copy link
Member

Craft 2 doesn’t automatically re-save entries after an Entry Type has been updated. (Craft 3 does, though.) To get all the titles updated, just re-save the main Section settings as well, even if you don’t change anything.

@RitterKnightCreative
Copy link
Author

RitterKnightCreative commented May 23, 2017

To get all the titles updated, just re-save the main Section settings as well, even if you don’t change anything.

Odd. I can see a pending task that says "resaving entries" but the titles are not updated upon inspection.

@brandonkelly
Copy link
Member

is there a stuck task in the queue before it or something? The titles won’t be updated until that "resaving entries" task is finished.

@RitterKnightCreative
Copy link
Author

RitterKnightCreative commented May 23, 2017

The task appears to finish. The only way I can get the titles to update is manually going into them and saving. Tried on another install as well, same thing.

@brandonkelly
Copy link
Member

Doh, thanks, was able to reproduce. Fixed for the next release!

@brandonkelly brandonkelly self-assigned this May 23, 2017
@brandonkelly brandonkelly added bug severity:minor Cosmetic issues or bugs with simple workarounds labels May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity:minor Cosmetic issues or bugs with simple workarounds
Projects
None yet
Development

No branches or pull requests

2 participants