mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch '5' into 6
This commit is contained in:
commit
a4149d12cf
4
sake
4
sake
@ -42,7 +42,7 @@ fi
|
|||||||
|
|
||||||
# Find the PHP binary
|
# Find the PHP binary
|
||||||
for candidatephp in php php5; do
|
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`
|
php=`which $candidatephp 2>/dev/null`
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -116,4 +116,4 @@ fi
|
|||||||
################################################################################################
|
################################################################################################
|
||||||
## Basic execution
|
## Basic execution
|
||||||
|
|
||||||
$php $framework/cli-script.php ${*}
|
"$php" "$framework/cli-script.php" "${@}"
|
||||||
|
@ -397,7 +397,6 @@ trait SearchableDropdownTrait
|
|||||||
$record->$classNameField = $ids ? $record->ClassName : '';
|
$record->$classNameField = $ids ? $record->ClassName : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$record->write();
|
|
||||||
} else {
|
} else {
|
||||||
// has_many / many_many field
|
// has_many / many_many field
|
||||||
if (!method_exists($record, 'hasMethod')) {
|
if (!method_exists($record, 'hasMethod')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user