Publishing deletes corresponding preview files (1.11.4)
Preview files disappear from preview server when being published
1. Preview and publish server are virtual hosts on same machine
2. Bricolage uses different ftp users for preview/publish
3. Preview/publish files are not identical
Anybody seen this?
Comments and changes to this ticket
- State changed from open to resolved
(from [3b20cade6f8cfe48ccb980c6debe450cb7425411]) Don't delete preview files on publish.
This happened for stories in multiple categories -- and probably for stories
with multiple pages, too. The problem was that
not_uri => ANY(@files)was
(uri NOT LIKE $file OR uri NOT LIKE $file). That
ORneed to be an
AND. So I fixed the
any_wherefunction to detect
NOT LIKEand switch to an
ANDin that case.
(Just as an aside, I hate that we're parsing SQL bits here, but at least they're all bits we control in our code).
Thanks to Guido Buelskaemper for the report [#156 state:resolved].