Browse files

Слияние с ревизией(ями) 1109 из OC:

Corrected fix for information bottom. Since unchecked checkboxes don't POST, additional step needed for edit.

git-svn-id: http://subversion.assembla.com/svn/ocstoreru@495 44b37dae-b762-45cd-8c5e-82695f3631dd
  • Loading branch information...
1 parent 8c9b133 commit 3b3f47cf23abe2f33c2208a33448f4e54ed6f095 yesvik committed with yesvik May 24, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 trunk/admin/model/catalog/information.php
View
4 trunk/admin/model/catalog/information.php
@@ -38,7 +38,9 @@ public function editInformation($information_id, $data) {
$this->db->query("UPDATE " . DB_PREFIX . "information SET sort_order = '" . (int)$data['sort_order'] . "', status = '" . (int)$data['status'] . "' WHERE information_id = '" . (int)$information_id . "'");
if (isset($data['bottom'])) {
- $this->db->query("UPDATE " . DB_PREFIX . "information SET bottom = '" . (int)$data['bottom'] . "' WHERE information_id = '" . (int)$information_id . "'");
+ $this->db->query("UPDATE " . DB_PREFIX . "information SET bottom = '1' WHERE information_id = '" . (int)$information_id . "'");
+ } else {
+ $this->db->query("UPDATE " . DB_PREFIX . "information SET bottom = '0' WHERE information_id = '" . (int)$information_id . "'");
}
$this->db->query("DELETE FROM " . DB_PREFIX . "information_description WHERE information_id = '" . (int)$information_id . "'");

0 comments on commit 3b3f47c

Please sign in to comment.