[BUGFIX] FilesReplacePermissionUpdate wrong where clause 79/49479/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 14 Aug 2016 15:23:23 +0000 (17:23 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 24 Aug 2016 19:51:18 +0000 (21:51 +0200)
The where clause to check for updates should select
records that have writeFile set, but not replaceFile.

Change-Id: I048909d6b722d1c9ae23c5815a05a7f93fcdc956
Resolves: #77500
Releases: 7.6
Reviewed-on: https://review.typo3.org/49479
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Classes/Updates/FilesReplacePermissionUpdate.php

index 4da08fe..1235de7 100644 (file)
@@ -117,6 +117,6 @@ class FilesReplacePermissionUpdate extends AbstractUpdate
      */
     protected function getWhereClause()
     {
-        return 'file_permissions LIKE \'%writeFile%\' AND file_permissions LIKE \'%replaceFile%\'';
+        return 'file_permissions LIKE \'%writeFile%\' AND file_permissions NOT LIKE \'%replaceFile%\'';
     }
 }