CRM-16717 trim prefix field as it might have syntactical space
authorEileen McNaughton <eileen@fuzion.co.nz>
Thu, 9 Jul 2015 00:33:37 +0000 (12:33 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Thu, 9 Jul 2015 00:33:37 +0000 (12:33 +1200)
CRM/Core/BAO/SchemaHandler.php

index 975ca89a87faa338578a84dd1400bfbebf92027b..0abdd694c601764baa4f1c879a08c906c992a615 100644 (file)
@@ -351,7 +351,7 @@ ALTER TABLE {$tableName}
       // Are there any modifies we DON'T was to call this function for (& shouldn't it be clever enough to cope?)
       if ($params['operation'] == 'add' || $params['operation'] == 'modify') {
         $logging = new CRM_Logging_Schema();
-        $logging->fixSchemaDifferencesFor($params['table_name'], array($prefix => array($params['name'])), FALSE);
+        $logging->fixSchemaDifferencesFor($params['table_name'], array(trim($prefix) => array($params['name'])), FALSE);
       }
     }