Fixed a bug that could cause some servers to refuse form posts in web admin
Former-commit-id: e299af4714
This commit is contained in:
parent
a8e2524810
commit
19fd9ad2c5
1 changed files with 6 additions and 2 deletions
|
@ -330,7 +330,7 @@ class Form {
|
|||
}
|
||||
}
|
||||
|
||||
$sSubmittedFlagName = $this->sModelClass . "::submitted";
|
||||
$sSubmittedFlagName = $this->submitSignatureName();
|
||||
if($this->option("close") === TRUE) {
|
||||
$sCloseUrl = $this->option("closeurl");
|
||||
$sCloseButton = '<a class="btn" href="' . $sCloseUrl . '">Close</a>';
|
||||
|
@ -358,7 +358,11 @@ HTML;
|
|||
return $sHtml;
|
||||
}
|
||||
|
||||
protected function submitSignatureName() {
|
||||
return str_replace('\\', '_', $this->sModelClass . "::submitted");
|
||||
}
|
||||
|
||||
public function submitted() {
|
||||
return intval(\Flake\Util\Tools::POST($this->sModelClass . "::submitted")) === 1;
|
||||
return intval(\Flake\Util\Tools::POST($this->submitSignatureName())) === 1;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue