Skip to content

Commit

Permalink
Merge branch 'release/2.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 12, 2017
2 parents 9b0452f + 90f910b commit 045ef22
Show file tree
Hide file tree
Showing 180 changed files with 23,601 additions and 16,705 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dist/
vendor/
.gh_token
*.min.*
.idea
.settings
.buildpath
.project
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
language: php

php:
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- nightly

before_script:
- git clone https://github.com/glpi-project/glpi -b 9.1 ../glpi && cd ../glpi
- git clone https://github.com/glpi-project/glpi --depth 1 -b 9.1.2 ../glpi && cd ../glpi
- mv ../formcreator plugins/formcreator
- composer install --no-dev
- php tools/cliinstall.php --db=glpi-test --user=travis --tests

script:
- cd plugins/formcreator
- rm composer.lock
- composer install
- php tools/cliinstall.php --tests

script:
- vendor/bin/phpunit --verbose
- vendor/bin/robo --no-interaction code:cs

matrix:
allow_failures:
- php: nightly

cache:
directories:
- $HOME/.composer/cache
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
GLPI Formcreator ChangeLog
===============================

Version 2.5.0
-------------

## Features:
* forms can target tickets and changes
* complex question conditions with multiple criterias
* set ticket category and urgency from a form's field
* show list of answers of a form
* print answers of a form

## Bugfixes:
* single quotes upgrade issues
* LDAP field


Version 2.4.2
-------------

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ Après la mise à jour de FormCreator vers la version 2.4.0 ou supérieur, les u
![3.-Configuration](/screenshot.png "Configuration")

![3.9.-Formcreators-helpdesk](/screenshot_2.png "Service catalog")

10 changes: 7 additions & 3 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
*
* @see http://robo.li/
*/
require_once 'RoboFilePlugin.php';
class RoboFile extends RoboFilePlugin

require_once 'vendor/autoload.php';

class RoboFile extends Glpi\Tools\RoboFile
{

protected $csignore = ['/vendor/', '/lib/'];
//Own plugin's robo stuff
}
}
142 changes: 0 additions & 142 deletions RoboFilePlugin.php

This file was deleted.

2 changes: 1 addition & 1 deletion ajax/dropdown_values.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Session::checkRight("entity", UPDATE);

if($_REQUEST['dropdown_itemtype'] == '0' || !class_exists($_REQUEST['dropdown_itemtype'])) {
if ($_REQUEST['dropdown_itemtype'] == '0' || !class_exists($_REQUEST['dropdown_itemtype'])) {
Dropdown::showFromArray("dropdown_default_value", array(), array('display_emptychoice' => true));
} else {
Dropdown::show($_REQUEST['dropdown_itemtype'], array(
Expand Down
2 changes: 1 addition & 1 deletion ajax/homepage_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

echo '<li id="menu5">";
<a href="'.$CFG_GLPI['root_doc'].'/plugins/formcreator/front/formlist.php" class="itemP">'.
_n('Form','Forms', 2, 'formcreator').
_n('Form', 'Forms', 2, 'formcreator').
'</a>
</li>';
4 changes: 2 additions & 2 deletions ajax/homepage_wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
$keywords = isset($_REQUEST['keywords']) ? $_REQUEST['keywords'] : '';
$helpdeskHome = isset($_REQUEST['helpdeskHome']) ? $_REQUEST['helpdeskHome'] != '0' : false;
plugin_formcreator_showWizardForms($categoriesId, $keywords, $helpdeskHome);
} elseif ($_REQUEST['wizard'] == 'toggle_menu') {
} else if ($_REQUEST['wizard'] == 'toggle_menu') {
$_SESSION['plugin_formcreator_toggle_menu'] = isset($_SESSION['plugin_formcreator_toggle_menu'])
? !$_SESSION['plugin_formcreator_toggle_menu']
: true;
Expand All @@ -28,7 +28,7 @@ function plugin_formcreator_showWizardCategories($helpdesk = true) {
echo json_encode($tree, JSON_UNESCAPED_SLASHES);
}

function plugin_formcreator_showWizardForms($rootCategory = 0, $keywords, $helpdeskHome = false) {
function plugin_formcreator_showWizardForms($rootCategory = 0, $keywords = '', $helpdeskHome = false) {
$form = new PluginFormcreatorForm();
$formList = $form->showFormList($rootCategory, $keywords, $helpdeskHome);
echo json_encode($formList, JSON_UNESCAPED_SLASHES);
Expand Down
Loading

0 comments on commit 045ef22

Please sign in to comment.