craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
282 stars 98 forks source link

Quick create doesn't apply all path macros #6698

Open rart opened 3 weeks ago

rart commented 3 weeks ago

Duplicates

Latest version

Describe the issue

Currently, only {year} and {month} are actually processed for the quick create path. Other supported macros (i.e. yyyy, mm, dd, objectId) are ignored and using those would launch an error page when trying to open the form for that quick create entry.

objectId or parentPath is not something we can support at that stage of creation but all the date related ones should be parsed correctly.

Steps to reproduce

Steps:

  1. On Editorial, go to Project Tools > Content Types > Article
  2. On "Destination Path Pattern" add {mm} (or some of the other suggested macros)
  3. Save the content type
  4. Go to the quick create menu and try to create an article and notice the error page

Relevant log output

No response

Screenshots and/or videos

No response

rart commented 3 weeks ago

@Euquimides please validate.