This commit is contained in:
Thomas Zilio 2019-02-18 09:25:31 +01:00
parent 32eeffaef3
commit a711ed92da
2 changed files with 4 additions and 2 deletions

View File

@ -13,12 +13,12 @@ if (empty($id_record) && !empty($id_module)) {
include_once App::filepath('include|custom|', 'top.php');
Util\Query::setSegments(false);
$query = Util\Query::getQuery($structure, [
$query = Util\Query::getQuery($module, [
'id' => $id_record,
]);
Util\Query::setSegments(true);
$has_access = !empty($query) ? $dbo->fetchNum($query) : true;
$has_access = !empty($query) ? $dbo->fetchNum($query) !== 0 : true;
if ($has_access) {
// Inclusione gli elementi fondamentali

View File

@ -9,6 +9,8 @@ if ($module['name'] == 'Ordini cliente') {
$dir = 'uscita';
}
$_SESSION['superselect']['idanagrafica'] = $record['idanagrafica'];
?><form action="" method="post" id="edit-form">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="update">