From d47c566c4d322581a851106162392b0d759a0772 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 12 Apr 2020 18:15:38 +0200 Subject: [PATCH] Fix class not found --- htdocs/takepos/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index f9a3c725032..bba62298989 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -33,6 +33,7 @@ if (!defined('NOREQUIREHTML')) define('NOREQUIREHTML', '1'); if (!defined('NOREQUIREAJAX')) define('NOREQUIREAJAX', '1'); require '../main.inc.php'; // Load $user and permissions +require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'; require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; @@ -82,10 +83,13 @@ else $soc->fetch($conf->global->$constforcompanyid); $result = restrictedArea($user, 'takepos', 0, ''); + /* * View */ +$form = new Form($db); + // Title $title = 'TakePOS - Dolibarr '.DOL_VERSION; if (!empty($conf->global->MAIN_APPLICATION_TITLE)) $title = 'TakePOS - '.$conf->global->MAIN_APPLICATION_TITLE;