You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-03-23 13:12:42

t_roloff
Member
Registered: 2015-05-22
Posts: 10

"Replay software dictionary" does not work

I'm having problems replaying my software dictionary. All my rules "ignore import", which does not seem to work as expected.

  • go to Administration->Dictionaries->Software

  • select Replay dictionary rules -> page with warning message appears

  • select Submit

Next page shows progress bar, but it's always Task complete in 0 seconds and nothing happens.

I looked around and added some debugging messages in inc/ruledictionnarysoftwarecollection.class.php. In inc/ruledictionnarysoftwarecollection.class.php, this

 //Replay software dictionnary rules
            $res_rule = $this->processAllRules($input, array(), array());

            if ((isset($res_rule["name"]) && ($res_rule["name"] != $input["name"]))
                || (isset($res_rule["version"]) && ($res_rule["version"] != ''))
                || (isset($res_rule['new_entities_id'])
                    && ($res_rule['new_entities_id'] != $input['entities_id']))
                || (isset($res_rule['is_helpdesk_visible'])
                    && ($res_rule['is_helpdesk_visible'] != $input['helpdesk']))
                || (isset($res_rule['manufacturer'])
                    && ($res_rule['manufacturer'] != $input['manufacturer']))) {

seems to be false all the time, since in my case $res_rule never contains one of the keys tested.

This is what $res_rule looks like in my case, if the "no import" rule triggers:

array(2) { ["_ignore_import"]=> string(1) "1" ["_ruleid"]=> string(3) "206" }

I assume that therefore replayDictionnaryOnSoftwaresByID never gets called.

Selecting one single rule doesn't change the behavoiur either.

Thanks for your help.

Offline

Board footer

Powered by FluxBB