hasAuth()) { $id = $doc->getAuth()->getData('id'); $data = $this->_getFromDb($id); if ('y' == Qs_Array::get($data, 'shipping[asBilling]')) { $data['shipping']['asBilling'] = 'Yes'; $data['shipping'] = array_merge($data['shipping'], $data['billing']); } else { $data['shipping']['asBilling'] = 'No'; } $data = Qs_Array::flattenAssoc($data, true); foreach ($this->_htmlPlaceholdersFields as $field) { if (!Qs_Array::get($data, $field)) { $data[$field] = '-'; } } $this->_setHtmlPlaceholdersData($data); } return parent::getPlaceholdersData(); } public function updatePassword(array $data = null) { if (null === $data) { $data = $this->_data; } else { $this->_data = $data; } $data = ['password' => $data['password'], 'salt' => $data['salt']]; $this->_clearErrors(); $this->_db->beginTransaction(); try { $result = $this->_getTable()->updateByKey($data, $this->_primaryKey); $this->_db->commit(); } catch (Exception $e) { $this->_db->rollBack(); Qs_Debug::log($e->getMessage(), 3); $this->_addError($e->getMessage()); return false; } return $result; } }