File tree Expand file tree Collapse file tree 3 files changed +27
-9
lines changed
Expand file tree Collapse file tree 3 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -109,14 +109,10 @@ public function getSearchOptionsNew() {
109109
110110 $ tab [] = [
111111 'id ' => '1 ' ,
112- 'table ' => $ this ::getTable (),
113- 'field ' => 'status ' ,
114- 'name ' => __ ('Status ' ),
115- 'searchtype ' => [
116- '0 ' => 'equals ' ,
117- '1 ' => 'notequals '
118- ],
119- 'datatype ' => 'specific ' ,
112+ 'table ' => $ this ->getTable (),
113+ 'field ' => 'name ' ,
114+ 'name ' => __ ('Name ' ),
115+ 'datatype ' => 'itemlink ' ,
120116 'massiveaction ' => false
121117 ];
122118
@@ -179,6 +175,19 @@ public function getSearchOptionsNew() {
179175 'linkfield ' => 'groups_id_validator ' ,
180176 ];
181177
178+ $ tab [] = [
179+ 'id ' => '8 ' ,
180+ 'table ' => $ this ::getTable (),
181+ 'field ' => 'status ' ,
182+ 'name ' => __ ('Status ' ),
183+ 'searchtype ' => [
184+ '0 ' => 'equals ' ,
185+ '1 ' => 'notequals '
186+ ],
187+ 'datatype ' => 'specific ' ,
188+ 'massiveaction ' => false
189+ ];
190+
182191 if ($ display_for_form ) {
183192 $ optindex = self ::SOPTION_ANSWER ;
184193 $ question = new PluginFormcreatorQuestion ;
Original file line number Diff line number Diff line change 1+ <?php
2+ function plugin_formcreator_update_dev (Migration $ migration ) {
3+ global $ DB ;
4+
5+ // Change id of search option for status of form_answer
6+ $ table = 'glpi_displaypreferences ' ;
7+ $ query = "UPDATE ` $ table` SET `num`='8' WHERE `itemtype`='PluginFormcreatorForm_Answer' AND `num`='1' " ;
8+ $ DB ->query ($ query );
9+ }
Original file line number Diff line number Diff line change 11<?php
22global $ CFG_GLPI ;
33// Version of the plugin
4- define ('PLUGIN_FORMCREATOR_VERSION ' , '2.6.1 ' );
4+ define ('PLUGIN_FORMCREATOR_VERSION ' , '2.6.2-dev ' );
55// Schema version of this version
66define ('PLUGIN_FORMCREATOR_SCHEMA_VERSION ' , '2.6 ' );
77
You can’t perform that action at this time.
0 commit comments