mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Correct location for getValueFromData()
This commit is contained in:
parent
cbeb7a82e8
commit
b54e7fa4c6
@ -46,6 +46,16 @@ class EditableFileField extends EditableFormField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the value for the database, link to the file is stored as a
|
||||||
|
* relation so value for the field can be null.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getValueFromData() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public function getSubmittedFormField() {
|
public function getSubmittedFormField() {
|
||||||
return new SubmittedFileField();
|
return new SubmittedFileField();
|
||||||
}
|
}
|
||||||
|
@ -43,16 +43,6 @@ class SubmittedFileField extends SubmittedFormField {
|
|||||||
return ($link = $this->getLink()) ? $link : "";
|
return ($link = $this->getLink()) ? $link : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the value for the database, link to the file is stored as a
|
|
||||||
* relation so value for the field can be null.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getValueFromData() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the link for the file attached to this submitted form field.
|
* Return the link for the file attached to this submitted form field.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user