1
0
Fork 0

Fix: Notes can be posted again. Never use "defaults" with "false" (#5551)

This commit is contained in:
Michael Vogel 2018-08-04 16:06:36 +02:00 committed by Hypolite Petovan
commit 810c108297
4 changed files with 20 additions and 6 deletions

View file

@ -1058,7 +1058,12 @@ class DBA
$commands[$key] = ['table' => $table, 'conditions' => $conditions];
$cascade = defaults($options, 'cascade', true);
// Don't use "defaults" here, since it would set "false" to "true"
if (isset($options['cascade'])) {
$cascade = $options['cascade'];
} else {
$cascade = true;
}
// To speed up the whole process we cache the table relations
if ($cascade && count(self::$relation) == 0) {