* [FIX] Fixed bug on account creation. Auto increment was not set on DB id column

This commit is contained in:
nuxsmin
2017-01-13 14:02:00 +01:00
parent 47181be2cf
commit d98fe34f58
3 changed files with 5 additions and 5 deletions

View File

@@ -193,13 +193,13 @@ class AccountController extends ControllerBase implements ActionsInterface
$this->view->assign('publicLinkUrl', $publicLinkUrl);
$this->view->assign('accountPassDate', gmdate('Y-m-d H:i:s', $this->AccountData->getAccountPassDate()));
$this->view->assign('accountPassDateChange', gmdate('Y-m-d', $this->AccountData->getAccountPassDateChange()));
$this->view->assign('accountPassDateChange', gmdate('Y-m-d', $this->AccountData->getAccountPassDateChange() ?: ''));
} else {
$this->view->assign('accountPassDateChange', gmdate('Y-m-d', time() + 2592000));
$this->view->assign('accountPassDateChange', gmdate('Y-m-d', time() + 7776000));
}
$this->view->assign('actionId', $this->getAction());
$this->view->assign('accountParentId', Session::getLastAcountId());
// $this->view->assign('accountParentId', Session::getLastAcountId());
$this->view->assign('categories', Category::getItem()->getItemsForSelect());
$this->view->assign('customers', Customer::getItem()->getItemsForSelect());
$this->view->assign('otherUsers', UserUtil::getUsersLogin());

View File

@@ -364,7 +364,7 @@ class Util
*/
public static function getVersion($retBuild = false)
{
$build = '17011301';
$build = '17011302';
$version = [2, 0, 0];
if ($retBuild) {

View File

@@ -25,7 +25,7 @@ ALTER TABLE `accUsers`
DROP PRIMARY KEY;
ALTER TABLE `accounts`
CHANGE COLUMN `account_id` `account_id` SMALLINT(5) UNSIGNED NOT NULL,
CHANGE COLUMN `account_id` `account_id` SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
CHANGE COLUMN `account_userId` `account_userId` SMALLINT(5) UNSIGNED NOT NULL,
CHANGE COLUMN `account_userEditId` `account_userEditId` SMALLINT(5) UNSIGNED NOT NULL,
CHANGE COLUMN `account_categoryId` `account_categoryId` SMALLINT(5) UNSIGNED NOT NULL,