mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
MINOR: added is_numeric check to prevent form failing on certain cases
This commit is contained in:
parent
ef436eadd4
commit
3690de6943
@ -230,7 +230,7 @@ class MultiFormStep extends DataObject {
|
|||||||
* @return MultiFormStep|boolean
|
* @return MultiFormStep|boolean
|
||||||
*/
|
*/
|
||||||
public function getNextStepFromDatabase() {
|
public function getNextStepFromDatabase() {
|
||||||
if($this->SessionID) {
|
if($this->SessionID && is_numeric($this->SessionID)) {
|
||||||
$nextSteps = $this->stat('next_steps');
|
$nextSteps = $this->stat('next_steps');
|
||||||
if(is_string($nextSteps)) {
|
if(is_string($nextSteps)) {
|
||||||
return DataObject::get_one($nextSteps, "SessionID = {$this->SessionID}");
|
return DataObject::get_one($nextSteps, "SessionID = {$this->SessionID}");
|
||||||
|
Loading…
Reference in New Issue
Block a user