Git Product home page Git Product logo

fields's People

Contributors

1soproni avatar adrienclairembault avatar aeto-j avatar ajasa19 avatar alanbadier avatar bicb4 avatar boscorelly avatar btry avatar cconard96 avatar cedric-anne avatar dependabot[bot] avatar emixam360 avatar flegastelois avatar lainow avatar mikhailyurievich avatar neeftarah avatar orthagh avatar p-bo avatar po1vo avatar rom1-b avatar stonebuzz avatar t0rb3n avatar tomolimo avatar trasher avatar tsmr avatar vladottx avatar xacobofg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fields's Issues

Problème de droits

Bonjour,

N'ayant pas accès en modification à un élément, je peut malgré tout modifier les champs supplémentaires !
Les droits devrais être calqués sur les droits de l'objet et je ne devrais donc pas pouvoir les modifier.

GLPI 0.90
Fields 0.90-1.1
Objet ciblé : Groupes

Cordialement,
Jérémy

Problems refresh form

Dear
In the ticket form when selecting a field refreshes the form (Example: Category), the selected data in custom fields is lost.

Regards,

bug avec droit "delete" sur l'asset

Bonjour,

Petit bug, testé sur les périphériques, je pense que le reste c'est pareil mais pas vérifié :

Lorsque le droit "delete" sur les periphériques est actif ; organisation de la page :

  • Champs GLPI de base
  • Champs ajoutés par le plugin
  • Bouton de sauvegarde / de mise à la corbeille

Lorsque le droit "delete" sur les periphériques est inactif ; organisation de la page :

  • Champs ajoutés par le plugin
  • Champs GLPI de base
  • Bouton de sauvegarde

Pour résumer : si le droit de "delete" est actif, les champs GLPI sont en tete de page (ce qui est normal), et quand ce n'est pas le cas , les champs du plugin sont en tête .... pas pratique !

Field label in views

How to change column label in example if i add a fields too ticket view a i get long names
Plugins- Block name - field name
It's very long in my case.
When adding field or searching its very useful but in column view its going out of screen when i add more filelds.
How to work around in quick way and maybe a request to add a next version: when we add field the add the name on view.
Do new fields have same msgid to add in translation file ?

datas displayed wrong

Hello

I have a yes/no field and when I select and save the value is correctly registered but it display wrong value.

By default the value is "no".

Droits modif champ

Bonjour,

Tout d'abord, merci pour ce plugin.

J'aimerai savoir si il serait possible de le modifier quelque peu pour accorder ou non la modification d'un champ selon le profil de l'utilisateur.
Exemple dans le cadre d'un base en accès libre :

  • Un champ ID : c'est un champ "d'inventaire" il pourrait être modifié uniquement par les administrateurs.
  • Un champ "Location" : c'est un champ en "mouvement" il pourrait être modifié par tous. Par exemple, l'utilisateur ABC prend un PC pour son poste de travail, il saisi alors en "location" : Poste de travail de ABC

Je ne pense pas que ce soit très compliqué à réaliser avec votre plugin en base. Simplement, lors de la création de la table fields, ajouter une colonne "droits" dans laquelle il y aura les numéros d'id des profils qui pourrait le modifier (ça inclut donc une ligne de plus sur l'interface de l'ajout de champ, où l'utilisateur selectionnerait le type de profil nécéssaire pour modif).
Et du coup lors du clic sur le bouton "Save". Pour enregistrer un champ, on comporte le profil de celui qui a cliqué sur le bouton à celui enregistré dans la base pour ce champ. Si c'est le meme l'update se fait, sinon ça update le reste mais pas celui là ...

J'espere que ce sera possible :)
Merci !

Could not add blocs or fields

Hi,

I've just installed this great plugin !
But, when I go to "Setup > Additionnal Fields", the "Add" (+) button is disabled.
Maybe a permission problem, but I don't see anything in the profiles panel to give permissions ...

I'm login with the super-admin account, GLPI 0.90.1.

Thanks for your help !

Use in templates

Hello!

I tried to use custom fields only for tickets of certain categories. So, I went to templates (.../front/tickettemplate.php) to set up. And I found out that I cannot use my custom fiels in the templates to make them (un)visible, obligatory or assign default values based on the ticket category, as I used to do with standard fields.
Isn't it supported yet? Or I do something wrong?

Thank you!

Champ obligatoire

Bonjour,

Lorsque l'on passe le champ en champ obligatoire (version 0.90-1.2 du plugin) même si il est remplis, a la sauvegarde du ticket un message d'erreur apparaît en disant champ non renseigné et le ticket est tout de même créé mais le message apparaît.

Par contre le vrai problème c'est que l'on ne peux pas clôturer le ticket car le message champ non renseigné apparaît toujours et empêche la clôture du ticket.

Merci

Simplified interface

Hello, i'm trying to add a new field to simplified interface. I followed the documentation and created a block to tickets but when i'll open a ticket the field don't appear. Could someone help me with this issue?

Can't display TWO tabs under one asset at the same time

Fresh installation of GLPI 0.90.1
Fields 0.90-1.1
No other plugins or modifications to GLPI.

How to reproduce:

  1. Add first active block under Asset Networks - type "Add tab", and add one header field in it.
  2. Add second active block under Assets Networks - type "Add tab", and one header field in it.

Now add one asset under Networks, goto this item - and you will see just ONE first block from Field plugin. If you make first block inactive - then you will see the second block in item and vice versa.

Is this is a normal behavior or it's a bug? Can you fix it plz? :)

Suppression d'utilisateur impossible à cause du plugin

Bonjour,

J'ai créé un bloc (infoscomplmentaires) avec 5 champs pour compléter les info des utilisateurs sauf qu'à présent je ne peux plus supprimer d'utilisateur. Je peux les mettre à la corbeille mais au moment de vider celle-ci, page blanche sur l'URL "https://glpi.atih.sante.fr/front/massiveaction.php", pas de chargement.
Dans les logs, j'ai l'erreur nginx suivante :
[error] 651#651: *57510 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'PluginFieldsUserinfoscomplmentaires' not found in /usr/share/nginx/html/plugins/fields/inc/container.class.php on line 270" while reading upstream, client: 10.42.11.22, server: localhost, request: "POST /front/massiveaction.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "glpi.atih.sante.fr", referrer: "https://glpi.atih.sante.fr/front/user.php?is_deleted=1&criteria%5B0%5D%5Bfield%5D=view&criteria%5B0%5D%5Bsearchtype%5D=contains&criteria%5B0%5D%5Bvalue%5D=ARS&itemtype=User&start=0"

J'utilise GLPI 0.90 et la version 0.90-1.1 du plugin Fields.

Une idée de ce qu'il se passe ?

Merci

error message in php log

2016-04-21 11:13:39 [636@UNGSRVGVA118]
*** PHP Notice(8): Undefined index: simcorpbaadminrightsfield
Backtrace :
plugins\fields\inc\field.class.php:737
plugins\fields\inc\field.class.php:424 PluginFieldsField::prepareHtmlFields()
plugins\fields\inc\container.class.php:526 PluginFieldsField::showForTabContainer()
inc\commonglpi.class.php:469 PluginFieldsContainer::displayTabContentForItem()
ajax\common.tabs.php:94 CommonGLPI::displayStandardTab()

Installation plugin "champs supplémentaires"

Bonjour,
J'ai installé le nouveau plugin "champs supplémentaires" (merci aux auteurs).
Juste une petite question, en mode debug j'ai les message suivants;
PHP Notice: Undefined index: status in /var/www/glpi/plugins/fields/inc/field.class.php at line 687
PHP Notice: Undefined index: status in /var/www/glpi/plugins/fields/inc/field.class.php at line 688
Dans le fichier glpi/files/_log/php-errors.log
*** PHP Notice(8): Undefined index: status
Backtrace :
plugins/fields/inc/field.class.php:688
plugins/fields/inc/field.class.php:650 PluginFieldsField::prepareHtmlFields()
plugins/fields/ajax/load_dom_fields.php:8 PluginFieldsField::AjaxForDomContainer()

Auriez vous une idée sur la nature du problème.
Merci

Michel Aubrsin

Pb sauvegarde de données

Bonjour,

Je viens d'installer le plugin Fields version 0.90-1.2 sur un glpi 0.90.3.
L'installation du plugin s'est bien passé.
J'ai pu ajouter un nouveau bloc (chiffrement) sur le type ordinateurs.
Quand je vais sur mes ordinateurs, je vois bien le nouvel onglet chiffrement apparaître.

Quand je vais sur ce nouvel onglet, je peux renseigner les nouveaux champs mais quand je sauvegarde, j'obtiens une page blanche.

en mode debug, j'ai le message suivant:
PHP Warning: Missing argument 3 for PluginFieldsContainer::updateFieldsValues(), called in /usr/share/glpi/plugins/fields/front/container.form.php on line 31 and defined in /usr/share/glpi/plugins/fields/inc/container.class.php at line 650
PHP Notice: Undefined variable: itemtype in /usr/share/glpi/plugins/fields/inc/container.class.php at line 662
Fatal error: Class 'PluginFieldsChiffrement' not found in /usr/share/glpi/plugins/fields/inc/container.class.php on line 663

Dans le répertoire /usr/share/glpi/plugins/fields/inc/, le plugin a crée deux nouveaux fichiers:
computerchiffrement.class.php
computerchiffrementinjection.class.php

Pouvez vous m'aider ?

Merci

Class not found when updating

Hello,
I created a simple line of text in new tab in "users", but when I try to update it I have a blank page and this error in my php log :
[Mon Aug 08 18:25:00 2016] [error] [client .._.] PHP Fatal error: Class 'PluginFieldsPersonnalinformation' not found in /var/www/*****.com/glpi/plugins/fields/inc/container.class.php on line 663, referer: https://_*.com/glpi/front/user.form.php?id=251
On GLPI 0.85.4 with php5.3 with fields version 0.90-1.3

Thanks !

[Injection] Two PHP injection classes per container (for datainjection plugin)

Without datainjection plugin :
1/ Add a new container in plugin fields (ie : 'aaa' container for a new tab in Computer) (=> no error)
2/ Look PHP classes in /inc/

Have 3 classes :

  • PluginFieldsComputeraaa -> OK
  • PluginFieldsComputeraaaInjection
  • PluginFieldsComputeraaaInjectionInjection

We need just a only class for injection par container.

Interface simplifiée

Bonjour,
Nous avons tenté d'ajouter un champ supplémentaire pour la création de ticket. Il est bien visible dans l'interface standard mais pas dans la version simplifiée.

Version 0.90.1

Merci d'avance

Multiligne non pris en compte sur la création de Ticket

Bonjour,
Avec un champs Texte (lignes multiples) les \rn ne sont pas pris en compte sur la création d'un Ticket.
Après validation l'affichage est ; TexteLigne1rnTexteLigne2rnTexteLigne3

Par contre en éditant un Ticket et en enlevant les rn puis en reformatant comme il faut le texte la sauvegarde multiligne se fait bien.

Cordialement

Value of "Yes/No" field are displayed wrong when the ticket is "Resolved"/"Closed"

I defined two new fields associated to the tickets.
These fileds are "True/False" fileds, with "No" as default value.
When the ticket is created or its state is "open" the value is "No" or the value we are assigned.
But when the ticket is closed o resolved these values are displaed as "Yes".
But if we make a search or reopen the ticked the value is correct.

Fields at the top

I'm checking GLPI 0.90 with field plugin (0.90-1.1) and I have a problem.
When create a new field, in the ticket, the field appear at the top.
The field is "Test:"
image
Another problem is when I create a new ticket, the field not appear.
Can you help me?
Thanks in advance

Non affichage des champs supplémentaires dans la disposition : Séparation Verticale

Bonjour,

Lorsque nous changeons la disposition dans les paramètres les champs supplémentaires n'apparaissent plus.

  • En vue Onglet sur la gauche les champs supplémentaires sont biens affichés (bloc de type : Insertion dans le formulaire (avant le bouton sauvegarder))
  • En vue Séparation verticale : les champs supplémentaires ne s'affichent pas.

Merci
Cordialement

Error when deleting entries in dust bin

Hello, I got this error in assets, doing:
→ Show deleted items
→ Action(s), "Delete permanently *"

Fatal error: Class 'PluginFieldsComputer4jscomputerfields' not found in /var/www/html/glpi09/plugins/fields/inc/container.class.php on line 270

What can we do ?

Thanks in advance,
have a good night!

Le plugin GESTION D'OBJETS

bonjour,
Merci de pour ce plugin très intéressant, mais est il possible d'y intégrer les objets personnalisés du parc qui ont été insérés par le plugin Gestion d'objets.

Exemple: Copieurs, Traceurs, Tableaux numériques.

[Infocom] No save datas of fields in Infocom tab

1/ Install fields
2/ Activate fields
3/ Create a field 'nb' (text) in Infocom tab (Financial informations) in Computer
4/ Create a Computer and in this computer item Activate Infocom
4/ Put "15" in nb field and save

Result : No data is saved in database !

fields : 0.90-1.1 (last commit of git)
GLPI : 0.91 (last commit of git)

Access restrictions not correctly applied

see http://forum.glpi-project.org/viewtopic.php?id=127152

Bonjour,

Je test actuellement le plugin fields (remplaçant de customfields)

Sur les blocs, on peut paramétré qui a accès ou non aux champs personnalisés, en fonction du profil. Mais cela ne semble pas fonctionner.

Lors d'un type "Ajout d'un onglet".

Quand l'on sélectionne Aucun accès pour un profil, on a quand même les droits en lecture dessus.

Lors d'un type " Insertion dans le formulaire (avant le bouton sauvegarder) "

  • Lorsque l'on sélectionne Aucun accès ou Lecture, le profil a quand même les droits en écritures.

Cela fait-il la même chose chez vous ? Je suis en GLPI 0.85.5.

add button plugins fields

Hi Friends,
how's it going over there?

I have a question about of plugins fields?

as you could save multiple tabs custom fields. This would add more not save?

example:
campos personalizados

have multiple records of the same tabs such as a button New Register

Error during saving data

Hello,

I am trying to use this plugin. I have created a new tab linked to ticket with one multi line field and then "regenerer les bloc".

So i try to use this new field. And the i save it and this error message appears :

PHP Warning: Missing argument 3 for PluginFieldsContainer::updateFieldsValues(), called in /var/www/glpi/plugins/fields/front/container.form.php on line 31 and defined in /var/www/glpi/plugins/fields/inc/container.class.php at line 650
PHP Notice: Undefined variable: itemtype in /var/www/glpi/plugins/fields/inc/container.class.php at line 662

Fatal error: Class 'PluginFieldsTable' not found in /var/www/glpi/plugins/fields/inc/container.class.php on line 663

when the ticket is closed a wrong valor is displayed

Hello

I have created fields yes/no, when the ticket is not closed it is ok the field displays No, but when I close the ticket the valor Yes is diplayed, normally it should be No by default.

In the database the valor is No

Problem with form view (SQL error : Table of plugin doesn't exist)

After enabling plugin, add fields and then enable (ie. in Computer tab) view of this new field, whole list in this view dissapears.
When plugin is enabled but added thru plugin filed in not selected as visible, the form is ok...
1
...but when field is selected as visible in form settings - whole form dissapear :(
2

Entity restriction issue

Hello
Let's considere this entity schema 👍
Root
+---Entity1
+---Entity2

Let's define a block visible in Entity1 (recursively, but doesn't matters) with some field values, visible for a certain type of object : ex Computer
There is an issue with the entity of a block
The Block tab should only be visible in the Entity where it is defined (in this sample Entity1): computers in entity 1 should have the tab defined previously and not in Entity2

Hope I'm clear enough ;)

Unable to Add Form Block on Printers

I get the error message: "You cannot add several blocs with type 'Insertion in the form' on same object" when I try to create a new form block within the main form of the printer-type object. I do not have any existing custom fields for printers nor do I have any currently existing form blocks that include printer as an asset type. I get the same error when attempting to do this for any other asset types. I do have main form blocks for Computers, Tickets, Peripheral (Custom Devices), Phone and Contract.

edit: Updated to fields 1.3 and this problem still persists. I'm unable to add any new main form blocks, even for asset types that do not have any custom fields. Here is the message in my /var/log/httpd/error_log:
[Tue Aug 30 14:46:45.960471 2016] [:error] [pid 31843] [client 10.0.0.152:62204] script '/usr/share/glpi/plugins/fields/ajax/container_itemtypes_dropdown.php' not found or unable to stat, referer: http://glpi.ccso.ds.clackamas.us/plugins/fields/front/container.form.php

GLPI: 0.90.5
fields: 0.90-1.3
datainjection: 2.4.1
mydashboard: 1.2.1
ocsinventoryng: 1.2.1

Sharing a dropdown list between mutliple blocs

Hi,

I created a bloc per itemtype (because I can't do otherwise). In each bloc I created a dropdown list with the same name and it seems that this allows to create a kind of shared dropdown list that can be filled once with the desired items. Do you think this is a side effect, or it should really work this way?

Thanks.

Unable to add more than one block in dom of form

Hello,

I believe this is more or less same issue than #53, but it is more general.
You can't add a block in the dom for one object type (ex: Printer) if by any chance you already have a block in the dom of another object type (ex: Computer).

Fix will follow,

regards,
Tomolimo

Blank page after saving in Entities

I am using glpi version 0.90.3 with plugin Fields version 0.90-1.2. I am facing some issues when adding a tab in Entities. After saving a blank page is displayed. Have you see this before ?

Corrupted DB content when using identical block names for same object

Hello,
We lost our complete custom fields for Computer when we created a new block for Computer but unfortunately with an already existing name.
To reproduce:

  1. create a new container block for 'Computer' object type: name it 'Test', then the plugin will create a table glpi_plugin_fields_computertests and a php file computertest.class.php for this.
  2. create a new container block for 'Computer' object type: name it 'Tests', then the plugin will try to create a table and a php file for this but witht he same names previously used, then they are not going to be created at all.
  3. delete the last block (in order to be able tore-create it with another name), then the plugin repository is corrupted.

Fix will follow,

regards,
Tomolimo

Conflict between Data Injection and Fields plugin

I don't know in which plugin the problem exists, but when creating a new file injection model within the File Injection plugin, no dropdown is visible to select the object type. I turned debug mode on and received the error in the attached image.

image

Workaround is to disable Fields plugin while creating file injection models, however this makes it impossible to create injection models that utilize custom fields (I think this was possible at some point in the past)!

Using GLPI 0.90.4-1 (latest from Remi Repo), CentOS 7 and the following plugins enabled:
Additional Fields v. 1.2
File Injection 2.4.1
OCS Inventory 1.2.1

[Massive actions] Ne pas vérifier l'intégralité des champs supplémentaire obligatoires lors d'une massive action

Bonjour,

Impossible de changer par exemple la catégorie d'un ensemble d'utilisateurs (sélectionner les utilisateurs, puis "Action", "Modifier", puis sélectionner le champ et sa valeur), lorsque l'on utilise un champ obligatoire sur les utilisateurs :
Un champ obligatoire est vide : Fonction, Service, Profile d'accès
Opération échouée
(0 problèmes de droits, 1 échecs)
DUPONT Jean : Erreur en exécutant l'action

Je vais essayer de faire la modification en retirant l'obligation de saisir ces champs puis en les remettant mais c'est très lourd.

Merci
PS : GLPI 0.90, Fields 0.90-1.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.