mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-08 07:38:54 +01:00
Fix #488
This commit is contained in:
parent
32eeffaef3
commit
a711ed92da
@ -13,12 +13,12 @@ if (empty($id_record) && !empty($id_module)) {
|
|||||||
include_once App::filepath('include|custom|', 'top.php');
|
include_once App::filepath('include|custom|', 'top.php');
|
||||||
|
|
||||||
Util\Query::setSegments(false);
|
Util\Query::setSegments(false);
|
||||||
$query = Util\Query::getQuery($structure, [
|
$query = Util\Query::getQuery($module, [
|
||||||
'id' => $id_record,
|
'id' => $id_record,
|
||||||
]);
|
]);
|
||||||
Util\Query::setSegments(true);
|
Util\Query::setSegments(true);
|
||||||
|
|
||||||
$has_access = !empty($query) ? $dbo->fetchNum($query) : true;
|
$has_access = !empty($query) ? $dbo->fetchNum($query) !== 0 : true;
|
||||||
|
|
||||||
if ($has_access) {
|
if ($has_access) {
|
||||||
// Inclusione gli elementi fondamentali
|
// Inclusione gli elementi fondamentali
|
||||||
|
@ -9,6 +9,8 @@ if ($module['name'] == 'Ordini cliente') {
|
|||||||
$dir = 'uscita';
|
$dir = 'uscita';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$_SESSION['superselect']['idanagrafica'] = $record['idanagrafica'];
|
||||||
|
|
||||||
?><form action="" method="post" id="edit-form">
|
?><form action="" method="post" id="edit-form">
|
||||||
<input type="hidden" name="backto" value="record-edit">
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
<input type="hidden" name="op" value="update">
|
<input type="hidden" name="op" value="update">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user