Commit 6f57883b authored by Kevin Duret's avatar Kevin Duret
Browse files

fix(admin): retrieve 'show deprecated pages' option management (#9196)

Refs: MON-6307
parent 90345321
......@@ -143,6 +143,7 @@ function updateContact($contact_id = null)
'contact_pager = :contactPager, ' .
'default_page = :defaultPage, ' .
'contact_js_effects = :contactJsEffects, ' .
'show_deprecated_pages = :showDeprecatedPages, ' .
'contact_autologin_key = :contactAutologinKey';
$password_encrypted = null;
if (!empty($ret['contact_passwd'])) {
......@@ -182,6 +183,7 @@ function updateContact($contact_id = null)
);
$stmt->bindValue(':defaultPage', !empty($ret['default_page']) ? $ret['default_page'] : null, \PDO::PARAM_INT);
$stmt->bindValue(':contactJsEffects', isset($ret['contact_js_effects']) ? 1 : 0, \PDO::PARAM_STR);
$stmt->bindValue(':showDeprecatedPages', isset($ret['show_deprecated_pages']) ? 1 : 0, \PDO::PARAM_STR);
$stmt->bindValue(':contactId', $contact_id, \PDO::PARAM_INT);
if (!is_null($password_encrypted)) {
$stmt->bindValue(':contactPasswd', $password_encrypted, \PDO::PARAM_STR);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment