mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-04 17:57:48 +01:00
Bugfix
This commit is contained in:
parent
accb938b59
commit
6636fa720b
3
add.php
3
add.php
@ -38,6 +38,9 @@ echo '
|
||||
echo '
|
||||
|
||||
<div class="hide" id="custom_fields_top-add">
|
||||
<input type="hidden" name="id_module" value="'.$id_module.'">
|
||||
<input type="hidden" name="id_plugin" value="'.$id_plugin.'">
|
||||
|
||||
{( "name": "custom_fields", "id_module": "'.$id_module.'", "id_plugin": "'.$id_plugin.'", "position": "top", "place": "add" )}
|
||||
</div>
|
||||
|
||||
|
@ -10,8 +10,8 @@ switch ($resource) {
|
||||
$filter[] = 'an_anagrafiche.idanagrafica='.prepare($element);
|
||||
}
|
||||
|
||||
$where[] = "descrizione='Cliente'";
|
||||
if (empty($filter)) {
|
||||
$where[] = "descrizione='Cliente'";
|
||||
$where[] = 'deleted=0';
|
||||
}
|
||||
|
||||
@ -32,8 +32,8 @@ switch ($resource) {
|
||||
$filter[] = 'an_anagrafiche.idanagrafica='.prepare($element);
|
||||
}
|
||||
|
||||
$where[] = "descrizione='Fornitore'";
|
||||
if (empty($filter)) {
|
||||
$where[] = "descrizione='Fornitore'";
|
||||
$where[] = 'deleted=0';
|
||||
}
|
||||
|
||||
@ -54,8 +54,8 @@ switch ($resource) {
|
||||
$filter[] = 'an_anagrafiche.idanagrafica='.prepare($element);
|
||||
}
|
||||
|
||||
$where[] = "descrizione='Agente'";
|
||||
if (empty($filter)) {
|
||||
$where[] = "descrizione='Agente'";
|
||||
$where[] = 'deleted=0';
|
||||
}
|
||||
|
||||
@ -89,8 +89,8 @@ switch ($resource) {
|
||||
$filter[] = 'an_anagrafiche.idanagrafica='.prepare($element);
|
||||
}
|
||||
|
||||
$where[] = "descrizione='Tecnico'";
|
||||
if (empty($filter)) {
|
||||
$where[] = "descrizione='Tecnico'";
|
||||
$where[] = 'deleted=0';
|
||||
|
||||
//come tecnico posso aprire attività solo a mio nome
|
||||
|
Loading…
x
Reference in New Issue
Block a user