You are not logged in.
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