admin: fix page editing
This commit is contained in:
parent
4a96cc6b5a
commit
b9b27b7ed2
@ -263,7 +263,7 @@ class AdminHandler extends request_handler {
|
||||
$page->edit([
|
||||
'title' => $title,
|
||||
'md' => $text,
|
||||
'visible' => (int)$visible,
|
||||
'visible' => (bool)$visible,
|
||||
'short_name' => $short_name,
|
||||
]);
|
||||
|
||||
|
@ -134,7 +134,7 @@ class AdminWriteEditForm {
|
||||
}
|
||||
|
||||
// fd.append('lang', this.getCurrentLang())
|
||||
if (this.isPost())
|
||||
if (this.isPost() || this.isEditing())
|
||||
fd.append('visible', ge('visible_cb').checked ? 1 : 0)
|
||||
|
||||
// text-specific fields
|
||||
|
Loading…
x
Reference in New Issue
Block a user