DeviceControl don't have "specificity" field and when you update
glpi_computers_devicecontrols you have a notice

This patch for GLPI 0.78.2 tets if $this->fields['specificity'] exist.


I have a little see in 0.80 and it seems same problem.


Thanks!

David Durieux 
# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /Donnees/www/data-dist/glpi078/inc
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: computer_device.class.php
--- computer_device.class.php Base (BASE)
+++ computer_device.class.php Locally Modified (Based On LOCAL)
@@ -497,7 +497,8 @@
             }
          }
       }
-      if ($this->fields['specificity'] == $this->input['specificity']) {
\ No newline at end of file
+      if (isset($this->fields['specificity'])
+              AND ($this->fields['specificity']== $this->input['specificity'])) {
\ No newline at end of file
          // No change
          return false;
       }
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to