Merge branch '5' into 6

This commit is contained in:
github-actions 2024-06-30 08:41:28 +00:00
commit a4149d12cf
2 changed files with 2 additions and 3 deletions

4
sake
View File

@ -42,7 +42,7 @@ fi
# Find the PHP binary
for candidatephp in php php5; do
if [ `which $candidatephp 2>/dev/null` -a -f `which $candidatephp 2>/dev/null` ]; then
if [ "`which $candidatephp 2>/dev/null`" -a -f "`which $candidatephp 2>/dev/null`" ]; then
php=`which $candidatephp 2>/dev/null`
break
fi
@ -116,4 +116,4 @@ fi
################################################################################################
## Basic execution
$php $framework/cli-script.php ${*}
"$php" "$framework/cli-script.php" "${@}"

View File

@ -397,7 +397,6 @@ trait SearchableDropdownTrait
$record->$classNameField = $ids ? $record->ClassName : '';
}
}
$record->write();
} else {
// has_many / many_many field
if (!method_exists($record, 'hasMethod')) {