Giter Site home page Giter Site logo

ticgal / yagp Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 594 KB

Yet Another GLPI Plugin

Home Page: https://tic.gal/en/project/yagp-yet-another-glpi-plugin/

License: GNU Affero General Public License v3.0

PHP 84.83% Shell 5.06% CSS 0.23% JavaScript 4.85% Twig 5.04%
glpi glpi-plugin contracts tickets

yagp's People

Contributors

francisticgal avatar inesmv avatar milotype avatar oscarbeiro avatar xacobofg avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

milotype

yagp's Issues

Error the form disappears

When the YAGP 'Block opening date' option is activated and the 'Opening date' field is set as default in the ticket template, the ticket creation form disappears.

Rename all YAGP strings

YAGP stands for Yet Another GLPI Plugin. 

\n

Plugin name is YAGP. CAPITALS.

\n

No translation should be  allowed

\n

 

GLPI ticket number: 17877
Created with GitSync in GLPI by Óscar Beiro

Multiple PHP warnings and non-working drop-downs

Using GLPI 10.0.10, and YAGP 2.2.0.

Getting this error flashing up on login and in various other screens:

image

In addition, I have discovered these three options will not let me set them to 'Yes'....but I believe this to be related to the above error:

image

Please let me know if you need any other information. Thanks!!

Replace ticket requester (mailcollector) Tag to search Not working

I'm testing the Tag to search, and I tested it in multiples way but not working at all. I'm set the tag in this way:

image

And also:

image

I send emails in different forms, surrounding the email with the tag in the body, subject, and TO, but nothing, all the tickets are created as I'm creating them:

  • In the subject:

image

  • In the TO:

image

  • In the Body:

image

My system information:

Information about system installation and configuration
GLPI 10.0.10 ( => /glpi)
Installation mode: TARBALL
Current language:en_GB

Server
 
Operating system: Linux SERVER 6.2.0-1015-azure #​15~22.04.1-Ubuntu SMP Fri Oct 6 13:20:44 UTC 2023 x86_64
PHP 8.1.2-1ubuntu2.14 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu,
bcmath, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml,
mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, soap, sockets, sodium, standard, sysvmsg,
sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="60" memory_limit="512M" post_max_size="10M" safe_mode="" session.save_handler="files"
upload_max_filesize="10M"
Software: Apache ()
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0
Server Software: Ubuntu 22.04
Server Version: 10.6.12-MariaDB-0ubuntu0.22.04.1-log
Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Parameters: usrglpidb@localhost/db
Host info: Localhost via UNIX socket

PHP version (8.1.2-1ubuntu2.14) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.
curl extension is installed.
gd extension is installed.
intl extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.6.12) is supported.
No files from previous GLPI version detected.
The log file has been created successfully.
Write access to /glpi/files/_cache has been validated.
Write access to /glpi has been validated.
Write access to /glpi/files/_cron has been validated.
Write access to /glpi/files has been validated.
Write access to /glpi/files/_dumps has been validated.
Write access to /glpi/files/_graphs has been validated.
Write access to /glpi/files/_lock has been validated.
Write access to /glpi/files/_pictures has been validated.
Write access to /glpi/files/_plugins has been validated.
Write access to /glpi/files/_rss has been validated.
Write access to /glpi/files/_sessions has been validated.
Write access to /glpi/files/_tmp has been validated.
Write access to /glpi/files/_uploads has been validated.

Web server root directory configuration seems safe.
Sessions configuration is secured.
OS and PHP are relying on 64 bits integers.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
Following extensions are installed: bz2, Phar, zip.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: "/glpi"
GLPI_CONFIG_DIR: "/glpi"
GLPI_VAR_DIR: "/glpi/files"
GLPI_LOG_DIR: "/glpi/log"
GLPI_MARKETPLACE_DIR: "/glpi/marketplace"
GLPI_USE_CSRF_CHECK: "1"
GLPI_CSRF_EXPIRES: "7200"
GLPI_CSRF_MAX_TOKENS: "100"
GLPI_USE_IDOR_CHECK: "1"
GLPI_IDOR_EXPIRES: "7200"
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: false
GLPI_SERVERSIDE_URL_ALLOWLIST: ["/^(https?|feed):\/\/[^@:]+(\/.*)?$/"]
GLPI_TELEMETRY_URI: "https://telemetry.glpi-project.org"
GLPI_INSTALL_MODE: "TARBALL"
GLPI_NETWORK_MAIL: "[email protected]"
GLPI_NETWORK_SERVICES: "https://services.glpi-network.com"
GLPI_MARKETPLACE_ALLOW_OVERRIDE: true
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true
GLPI_USER_AGENT_EXTRA_COMMENTS: ""
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: "1"
GLPI_AJAX_DASHBOARD: "1"
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: "0"
GLPI_CENTRAL_WARNINGS: "1"
GLPI_DOC_DIR: "/glpi/files"
GLPI_CACHE_DIR: "/glpi/files/_cache"
GLPI_CRON_DIR: "/glpi/files/_cron"
GLPI_DUMP_DIR: "/glpi/files/_dumps"
GLPI_GRAPH_DIR: "/glpi/files/_graphs"
GLPI_LOCAL_I18N_DIR: "/glpi/files/_locales"
GLPI_LOCK_DIR: "/glpi/files/_lock"
GLPI_PICTURE_DIR: "/glpi/files/_pictures"
GLPI_PLUGIN_DOC_DIR: "/glpi/files/_plugins"
GLPI_RSS_DIR: "/glpi/files/_rss"
GLPI_SESSION_DIR: "/glpi/files/_sessions"
GLPI_TMP_DIR: "/glpi/files/_tmp"
GLPI_UPLOAD_DIR: "/glpi/files/_uploads"
GLPI_INVENTORY_DIR: "/glpi/files/_inventories"
GLPI_NETWORK_REGISTRATION_API_URL: "https://services.glpi-network.com/api/registration/"
GLPI_MARKETPLACE_PLUGINS_API_URI: "https://services.glpi-network.com/api/marketplace/"
GLPI_I18N_DIR: "/glpi/locales"
GLPI_VERSION: "10.0.10"
GLPI_SCHEMA_VERSION: "10.0.10@05de68add675fb55abaeec10f3a2552085594a16"
GLPI_MARKETPLACE_PRERELEASES: false
GLPI_MIN_PHP: "7.4.0"
GLPI_MAX_PHP: "8.4.0"
GLPI_YEAR: "2023"

Libraries
 
htmlawed/htmlawed version 1.2.14 in (/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.8.0 in (/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.6.2 in (/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/glpi/vendor/sabre/http/lib)
sabre/uri in (/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/glpi/vendor/symfony/console)
scssphp/scssphp in (/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/glpi/vendor/rlanvin/php-rrule/src)
ramsey/uuid in (/glpi/vendor/ramsey/uuid/src)
psr/log in (/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/glpi/vendor/psr/simple-cache/src)
psr/cache in (/glpi/vendor/psr/cache/src)
league/csv in (/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/glpi/vendor/symfony/cache)
html2text/html2text in (/glpi/vendor/html2text/html2text/src)
symfony/css-selector in (/glpi/vendor/symfony/css-selector)
symfony/dom-crawler in (/glpi/vendor/symfony/dom-crawler)
twig/twig in (/glpi/vendor/twig/twig/src)
twig/string-extra in (/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 not found
symfony/polyfill-php81 not found
symfony/polyfill-php82 in (/glpi/vendor/symfony/polyfill-php82)
league/oauth2-client in (/glpi/vendor/league/oauth2-client/src/Provider)
league/oauth2-google in (/glpi/vendor/league/oauth2-google/src/Provider)
thenetworg/oauth2-azure in (/glpi/vendor/thenetworg/oauth2-azure/src/Provider)

Plugins list
 
accounts Name: Accounts Version: 3.0.3 State: Enabled
Install Method: Marketplace
activity Name: Activities Version: 3.1.2 State: Installed / not activated
Install Method: Marketplace
actualtime Name: ActualTime Version: 2.2.0 State: Enabled
Install Method: Marketplace
advancedplanning Name: advancedplanning Version: 1.1.0 State: Enabled
Install Method: Marketplace
news Name: Alerts Version: 1.12.1 State: Enabled
Install Method: Marketplace
barcode Name: Barcode Version: 2.7.1 State: Enabled
Install Method: Marketplace
behaviors Name: Behaviours Version: 2.7.2 State: Enabled
Install Method: Marketplace
fields Name: Campos adicionales Version: 1.21.6 State: Installed / not activated
Install Method: Marketplace
positions Name: Cartography Version: 6.0.2 State: Enabled
Install Method: Marketplace
cmdb Name: CMDB Version: 3.0.3 State: Enabled
Install Method: Marketplace
archimap Name: Diagramas Version: 3.3.2 State: Enabled
Install Method: Marketplace
manageentities Name: Entities portal Version: 4.0.3 State: Installed / not activated
Install Method: Marketplace
formcreator Name: Form Creator Version: 2.13.7 State: Enabled
Install Method: Marketplace
gantt Name: gantt Version: 1.0.4 State: Enabled
Install Method: Marketplace
gappessentials Name: Gapp Essentials Version: 2.1.2 State: Enabled
Install Method: Marketplace
glpiinventory Name: GLPI Inventory Version: 1.3.3 State: Enabled
Install Method: Marketplace
resources Name: Human Resources Version: 3.0.4 State: Installed / not activated
Install Method: Marketplace
geninventorynumber Name: Inventory number generation Version: 2.8.3 State: Enabled
Install Method: Marketplace
datainjection Name: Inyección de datos Version: 2.13.3 State: Installed / not activated
Install Method: Marketplace
addressing Name: IP Adressing Version: 3.0.1 State: Enabled
Install Method: Marketplace
uninstall Name: Item's Lifecycle (uninstall) Version: 2.9.0 State: Enabled
Install Method: Marketplace
mailanalyzer Name: Mail Analyzer Version: 3.0.0 State: Enabled
Install Method: Manual
mreporting Name: Más informes Version: 1.8.5 State: Enabled
Install Method: Marketplace
metabase Name: Metabase Version: 1.3.3 State: Installed / not activated
Install Method: Marketplace
mfa Name: MFA Version: 1.0.2 State: Installed / not activated
Install Method: Marketplace
moreticket Name: More ticket Version: 1.7.3 State: Installed / not activated
Install Method: Marketplace
mydashboard Name: My Dashboard Version: 2.1.5 State: Enabled
Install Method: Marketplace
ocsinventoryng Name: OCS Inventory NG Version: 2.0.4 State: Installed / not activated
Install Method: Marketplace
officeonline Name: Office Online Version: 3.0.1 State: Enabled
Install Method: Manual
onetimesecret Name: OneTimeSecret Version: 2.0.3 State: Enabled
Install Method: Marketplace
order Name: Orders management Version: 2.10.4 State: Enabled
Install Method: Marketplace
pdf Name: Print to pdf Version: 3.0.0 State: Not installed
Install Method: Marketplace
reports Name: Reportes Version: 1.16.0 State: Installed / not activated
Install Method: Marketplace
tag Name: Tag Management Version: 2.11.6 State: Installed / not activated
Install Method: Marketplace
tasklists Name: Tasks list Version: 2.0.3 State: Installed / not activated
Install Method: Marketplace
useditemsexport Name: Used items export Version: 2.5.1 State: Not installed
Install Method: Marketplace
yagp Name: YAGP Version: 2.2.0 State: Enabled
Install Method: Marketplace

Default minimal validation required - YAGP

  • New feature for GLPI 9.5.X
     
  • Expected Behaviour:
    • Set default Required Validation to 100%.
    • In case it is not possible, a new configuration will be enabled to
      force a default Required Validation, different from the current one
      (0%)

 

Numero de la peticion de GLPI: 10254
Creado por GitSync en GLPI por Inés Míguez

Default minimal validation

When the Default minimal validation is set, it is impossible to change then the value ticket per tìcket. They keep being force to the default

d

suggestion for yet another small tweak on GLPI [Close Times]

Good Day

can you guys add a time indicator on the close times in glpi. these close times are used together with the calender to exclude them.

my main goal is to be able to add a close time which is a half day. and i think if each close time can have a start and End time. this could be achieved.

Plugin disabling automatically

Hi,

Installed v2.3.1 on 2 different GLPI instalations (10.0.9 and 10.0.15) and get the same behaviour. The plugin automatically disables itself after some seconds of being enabled.

Any suggestions on what it could be?

Thank you.

Uncaught Exception TypeError: User::getUsersIdByEmails(): Argument #1 ($email) must be of type string, array given, called in /var/www/glpi/inc/user.class.php on line 495 in /var/www/glpi/inc/user.class.php at line 448

Uncaught Exception TypeError: User::getUsersIdByEmails(): Argument #1 ($email) must be of type string, array given, called in /var/www/glpi/inc/user.class.php on line 495 in /var/www/glpi/inc/user.class.php at line 448

[2022-07-08 12:34:02] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: User::getUsersIdByEmails(): Argument #1 ($email) must be of type string, array given, called in /var/www/glpi/inc/user.class.php on line 495 in /var/www/glpi/inc/user.class.php at line 448 Backtrace : inc/user.class.php:495 User::getUsersIdByEmails() plugins/yagp/inc/ticket.class.php:64 User->getFromDBbyEmail() inc/plugin.class.php:1368 PluginYagpTicket::preAddTicket() inc/commondbtm.class.php:1127 Plugin::doHook() inc/mailcollector.class.php:836 CommonDBTM->add() inc/mailcollector.class.php:1762 MailCollector->collect() inc/crontask.class.php:943 MailCollector::cronMailgate() front/cron.php:83 CronTask::launch()

Numero de la peticion de GLPI: 10483
Creado por GitSync en GLPI por Daniel Couso

[YAGP]Quick Transfer Button

For YAGP

n

Add a new option:

n
    n
  • Enable Quick Transfer
  • n
n

Check if the user has transfer permissions (same as GLPI) if enabled.

n

It will show a button on top of the right ticket pane

n

4ac471c2-e509fb39-6524ffeef0bb29.37486114

n

 

n

Quick transfer 

n

 

n

Behaviour:

n
    n
  • This is a UX enhancement. No new feature is needed.
  • n
  • One-click Complete transfer
  • n
  • Once pressed, it should open a modal or enable a dropdown near the buttón to change the entity.
  • n
  • The same restrictions and functions as standard transfer will be used.
  • n
n

 

GLPI ticket number: 17809
Created with GitSync in GLPI by Óscar Beiro

Botón de transferencia rápida

Como parte de la propuesta realizada vamos a crear un botón de transferencia rápida (Quick Transfer) que será utilizado para cambiar de entidad las peticiones sin el engorroso proceso de transferencia de GLPI.

\n

Simplemente habrá un botón que mostrará un diálogo con la entidad (Centro) de destino y esto permitirá asignar las peticiones de manera ágil.

\n

Hemos decidido añadirlo a nuestro plugin YAGP 

GLPI ticket number: 17808
Created with GitSync in GLPI by Óscar Beiro

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.