Bug #2876

1.6.0 not fully ready for GLPI 0.78+

Added by elacour over 8 years ago. Updated over 5 years ago.

Status:NewStart date:06/16/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Adding a new connection gives this error:

PHP Fatal error: Class 'PluginConnectionsConnectionRate' not found in inc/db.function.php on line 290

and forms is missing some fields and submit button.

That's due to the need for singular forms in class names in GLPI 0.78+

Attached patches fix this.

0001-Rename-files-to-respect-singular-form-needed-for-GLP.patch Magnifier (13.3 KB) elacour, 06/16/2011 11:44 AM

0002-Rename-class-to-use-singular-form-needed-for-GLPI-0..patch Magnifier (2.36 KB) elacour, 06/16/2011 11:44 AM

0003-Add-missing-file.patch Magnifier (2.02 KB) elacour, 06/16/2011 11:44 AM

History

#1 Updated by CDuv over 5 years ago

Changes of patches 0001-Rename-files-to-respect-singular-form-needed-for-GLP.patch and attachment:0002-Rename-class-to-use-singular-form-needed-for-GLPI-0..patch were applied in r7 (frankly: didn't saw theses patches before commmiting r7).

However I don't get the meanings of 0003-Add-missing-file.patch and the ajax/dropdownRatesConnections.php part of attachment:0002-Rename-class-to-use-singular-form-needed-for-GLPI-0..patch:

diff --git a/ajax/dropdownRatesConnections.php b/ajax/dropdownRatesConnections.php
index 7762294..12770ae 100755
--- a/ajax/dropdownRatesConnections.php
+++ b/ajax/dropdownRatesConnections.php
@@ -65,8 +65,8 @@ if (isset($_POST["plugin_connections_connectionrates_id"])) {
             );

     $default="<select name='".$_POST["myname"]."'><option value='0'>".DROPDOWN_EMPTY_VALUE."</option></select>";
-    ajaxDropdown($use_ajax,"/plugins/connections/ajax/dropdownRatesConnections.php",$params,$default,$rand);
+    ajaxDropdown($use_ajax,"/plugins/connections/ajax/dropdownConnections.php",$params,$default,$rand);

 }

-?>
\ No newline at end of file
+?>

Also available in: Atom PDF