Skip to content

Commit

Permalink
Insert Into Users Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pHAlkaline committed Feb 23, 2024
1 parent 4bacf03 commit cdc33a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/Config/Schema/phkondo.sql
Expand Up @@ -1049,8 +1049,8 @@ CREATE TABLE `support_statuses` (
--

/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` ( `name`, `username`, `password`, `role`, `active`, `modified`, `created`) VALUES ( 'Administrator' , 'admin' , '37a2954e802ce7e3e22fc8ba556482e0dba52d45' , 'admin',1,NOW() ,NOW());
INSERT INTO `users` ( `name`, `username`, `password`, `role`, `active`, `modified`, `created`) VALUES ( 'Demonstration' , 'demo' , '4be522cbc9828be322575cc78952e24f01c2dabd' , 'colaborator',0,NOW() ,NOW());
INSERT INTO `users` (`id`, `name`, `username`, `password`, `role`, `active`, `modified`, `created`) VALUES (1, 'Administrator' , 'admin' , '37a2954e802ce7e3e22fc8ba556482e0dba52d45' , 'admin',1,NOW() ,NOW());
INSERT INTO `users` (`id`, `name`, `username`, `password`, `role`, `active`, `modified`, `created`) VALUES (2, 'Demonstration' , 'demo' , '4be522cbc9828be322575cc78952e24f01c2dabd' , 'colaborator',0,NOW() ,NOW());


/*!40101 SET character_set_client = @saved_cs_client */;
Expand Down
7 changes: 5 additions & 2 deletions app/Controller/PaymentAdvicesController.php
Expand Up @@ -207,12 +207,12 @@ public function ajax_send($id)
return;
}

$event = new CakeEvent('Phkondo.PaymentAdvice.ajax_send', $this, array(
$event = new CakeEvent('Phkondo.PaymentAdvice.send', $this, array(
'id' => $id,
));
$result=$this->getEventManager()->dispatch($event);

echo json_encode(array('result' => $result['result']));
echo json_encode(array('result' => $result->result));
}

/**
Expand Down Expand Up @@ -513,6 +513,9 @@ public function delete($id = null)
public function beforeFilter()
{
parent::beforeFilter();
if ($this->RequestHandler->isAjax()) {
Configure::write('debug', 0);
}
if (!$this->getPhkRequestVar('condo_id')) {
$this->Flash->error(__('Invalid condo'));
$this->redirect(array('controller' => 'condos', 'action' => 'index'));
Expand Down

0 comments on commit cdc33a3

Please sign in to comment.