Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] add "form_id" in "form_answer" search option #1220

Closed
ladenree76000 opened this issue Nov 23, 2018 · 0 comments · Fixed by #1223
Closed

[feature] add "form_id" in "form_answer" search option #1220

ladenree76000 opened this issue Nov 23, 2018 · 0 comments · Fixed by #1223

Comments

@ladenree76000
Copy link

Looking for all form_answers submited from a form can be achieved by requesting form name.
name in text format and search doesn't work when names contains spaces or special chars or if too long.

So it would be usefull to add form id in form_anwers_seach options

class PluginFormcreatorForm_Answer

public function rawSearchOptions()

//add this option :
$tab[] = [
'id' => '9',
'table' => 'glpi_plugin_formcreator_forms',
'field' => 'id',
'name' => __('ID'),
'searchtype' => 'contains',
'datatype' => 'integer',
'massiveaction' => false
];

@ladenree76000 ladenree76000 changed the title ad "form_id" in "form_answer" search option [feature] add "form_id" in "form_answer" search option Nov 23, 2018
btry added a commit to btry/formcreator that referenced this issue Nov 29, 2018
@btry btry closed this as completed in #1223 Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant