Permalink
Browse files

BUGFIX Ensuring ParentID is numeric in File->setParentID()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92562 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent ba281cf commit 8b11599917048ca485f2e815143e9472c00eceae @chillu chillu committed Nov 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 filesystem/File.php
View
@@ -389,7 +389,7 @@ protected function updateLinks($old, $new) {
}
function setParentID($parentID) {
- $this->setField('ParentID', $parentID);
+ $this->setField('ParentID', (int)$parentID);
if($this->Name) $this->resetFilename();
else $this->autosetFilename();

0 comments on commit 8b11599

Please sign in to comment.