fields icon indicating copy to clipboard operation
fields copied to clipboard

Fields Plugin can not be configured as automatic action due to active profile check

Open zampat opened this issue 5 years ago • 0 comments

The Fields import could be automated with automatic action. In container.class.php the code makes reference to $_SESSION['glpiactiveprofile']['id'] not set in case of Cron job.

There would the a solution found in other sections of GLPI core: if (Session::isCron() || !isset($_SESSION['glpiactiveprofile']['id'])) { // define a default Session }

The code runs in this exception: *** Uncaught Exception ErrorException: Undefined index: glpiactiveprofile in /usr/share/glpi/plugins/fields/inc/container.class.php at line 1446

zampat avatar Feb 05 '21 17:02 zampat