russjohnson / SplashCMS

CFML based CMS built on CFWheels. Designed to be extremely simple and elegant.
http://www.splashcms.com
26 stars 18 forks source link

Critical pagePart error #20

Closed raulriera closed 15 years ago

raulriera commented 15 years ago

Currently it seems that the pageParts are getting "scrambled" when creating/updating... content is getting duplicated, "fileName" columns are getting the same values but the "content" column is different

raulriera commented 15 years ago

Is it possible that 2 or more pageParts are beign "raced conditioned" by using DateTimeFormat to name them?

raulriera commented 15 years ago

Yup, did a quick loop test and most of the files were named the same

raulriera commented 15 years ago

(Uncommited fix on my repo) Add to the table column 4 chars and use CreateUUID() instead of the current UDF. If you like this solution I can apply it to the pages and snippets and commit it

raulriera commented 15 years ago

I fixed this on my repo, but changed the way you named the files and the length of the column... If that is cool, go ahead and pull :)

http://github.com/raulriera/SplashCMS/commit/94752a7313812db3d2fe4530e70dce8f323d3611

russjohnson commented 15 years ago

Pulled in and committed to Origin.