mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Form::set_current_action() never gets called.
This commit is contained in:
parent
916de30204
commit
5596442081
@ -260,10 +260,6 @@ class Form extends RequestHandler {
|
|||||||
$vars = $request->requestVars();
|
$vars = $request->requestVars();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($funcName)) {
|
|
||||||
Form::set_current_action($funcName);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Populate the form
|
// Populate the form
|
||||||
$this->loadDataFrom($vars, true);
|
$this->loadDataFrom($vars, true);
|
||||||
|
|
||||||
@ -299,6 +295,7 @@ class Form extends RequestHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($funcName)) {
|
if(isset($funcName)) {
|
||||||
|
Form::set_current_action($funcName);
|
||||||
$this->setButtonClicked($funcName);
|
$this->setButtonClicked($funcName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user